update: docker-compose.yml

This commit is contained in:
tao.chen
2026-08-14 15:19:29 +08:00
parent be475dd0d9
commit e9a7e1a24e
+3 -10
View File
@@ -49,7 +49,7 @@ services:
- ${PWD}:/app - ${PWD}:/app
- ./default.conf:/etc/nginx/conf.d/default.conf.template:ro - ./default.conf:/etc/nginx/conf.d/default.conf.template:ro
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/ >/dev/null"] test: [ "CMD-SHELL", "wget -qO- http://127.0.0.1/ >/dev/null" ]
interval: 10s interval: 10s
timeout: 3s timeout: 3s
retries: 12 retries: 12
@@ -65,13 +65,6 @@ services:
max-size: "200m" max-size: "200m"
max-file: "10" max-file: "10"
restart: unless-stopped restart: unless-stopped
# The source tree is bind-mounted for local development while /app/.venv
# is an anonymous Docker volume. Sync first so restarts never keep an
# older installed backend package.
command:
- sh
- -c
- uv sync --no-dev --no-editable --package backend && uv pip install --python /app/.venv/bin/python --reinstall --no-deps ./common ./backend && exec gunicorn --config backend/gunicorn.conf.py backend.main:app
# No host port: architecture §2.2 — only Nginx is externally reachable. # No host port: architecture §2.2 — only Nginx is externally reachable.
# No local-FS volume: backend stores everything in S3 (S3_*). # No local-FS volume: backend stores everything in S3 (S3_*).
environment: environment:
@@ -107,7 +100,7 @@ services:
- ./data:/data - ./data:/data
- /app/.venv - /app/.venv
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8000/health/ready >/dev/null"] test: [ "CMD-SHELL", "curl -fsS http://127.0.0.1:8000/health/ready >/dev/null" ]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 18 retries: 18
@@ -209,7 +202,7 @@ services:
- ./data:/data - ./data:/data
- /app/.venv - /app/.venv
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8000/health/ready >/dev/null"] test: [ "CMD-SHELL", "curl -fsS http://127.0.0.1:8000/health/ready >/dev/null" ]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 18 retries: 18