deploy(docker): expose logs directory

This commit is contained in:
MingxuanGame
2025-08-19 10:13:26 +08:00
parent be7ca57c41
commit dec29bc013
4 changed files with 10 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ ENV PATH="/app/.venv/bin:${PATH}" \
COPY --from=builder /app/.venv /app/.venv COPY --from=builder /app/.venv /app/.venv
COPY --from=builder /app /app COPY --from=builder /app /app
RUN mkdir -p /app/logs
VOLUME ["/app/logs"]
COPY docker-entrypoint.sh /app/docker-entrypoint.sh COPY docker-entrypoint.sh /app/docker-entrypoint.sh
RUN chmod +x /app/docker-entrypoint.sh RUN chmod +x /app/docker-entrypoint.sh

View File

@@ -36,6 +36,9 @@ ENV PATH="/app/.venv/bin:${PATH}" \
COPY --from=builder /app/.venv /app/.venv COPY --from=builder /app/.venv /app/.venv
COPY --from=builder /app /app COPY --from=builder /app /app
RUN mkdir -p /app/logs
VOLUME ["/app/logs"]
COPY docker-entrypoint.sh /app/docker-entrypoint.sh COPY docker-entrypoint.sh /app/docker-entrypoint.sh
RUN chmod +x /app/docker-entrypoint.sh RUN chmod +x /app/docker-entrypoint.sh

View File

@@ -29,7 +29,9 @@ services:
condition: service_healthy condition: service_healthy
volumes: volumes:
- ./replays:/app/replays - ./replays:/app/replays
- ./storage:/app/storage
- ./static:/app/static - ./static:/app/static
- ./logs:/app/logs
restart: unless-stopped restart: unless-stopped
networks: networks:
- osu-network - osu-network

View File

@@ -23,7 +23,9 @@ services:
condition: service_healthy condition: service_healthy
volumes: volumes:
- ./replays:/app/replays - ./replays:/app/replays
- ./storage:/app/storage
- ./static:/app/static - ./static:/app/static
- ./logs:/app/logs
restart: unless-stopped restart: unless-stopped
networks: networks:
- osu-network - osu-network