update: docker-compose.yml

add volumes
This commit is contained in:
tao.chen
2026-08-07 13:58:04 +08:00
parent ffd1db45fc
commit 96f9a5c644
+8 -4
View File
@@ -35,6 +35,10 @@ services:
condition: service_healthy
runtime:
condition: service_healthy
volumes:
- $(pwd):/app
- ./default.conf:/etc/nginx/conf.d/default.conf.template:ro
- ./scripts/nginx-entrypoint.sh:/usr/local/bin/model-platform-entrypoint.sh:ro
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/ >/dev/null"]
interval: 10s
@@ -78,8 +82,7 @@ services:
ports:
- 8891:8000
volumes:
- ./backend:/app/backend
- ./common:/app/common
- $(pwd):/app
- ./data:/data
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8000/health/ready >/dev/null"]
@@ -126,7 +129,7 @@ services:
migrate:
condition: service_completed_successfully
volumes:
- ./runtime:/app/runtime
- $(pwd):/app
- ./data:/data
healthcheck:
test: ["CMD-SHELL", "grep -q ' /data/workspaces .* - fuse.rclone ' /proc/self/mountinfo && curl -fsS http://127.0.0.1:8000/api/v1/health >/dev/null"]
@@ -161,7 +164,8 @@ services:
backend:
condition: service_healthy
volumes:
- ./schedule:/app/schedule
- $(pwd):/app
- ./data:/data
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8000/health/ready >/dev/null"]
interval: 10s