From 96f9a5c64457e375960d491697aa50c8c24169fb Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Fri, 7 Aug 2026 13:58:04 +0800 Subject: [PATCH] update: docker-compose.yml add volumes --- docker-compose.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index dde0add..b510f9e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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