update: add volumes

This commit is contained in:
tao.chen
2026-08-03 13:55:41 +08:00
parent fd5ea4d33e
commit 386efb4d98
+9
View File
@@ -34,6 +34,8 @@ services:
condition: service_healthy condition: service_healthy
runtime: runtime:
condition: service_healthy condition: service_healthy
volumes:
- ./frontend/build/client:/usr/share/nginx/html
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
@@ -66,6 +68,9 @@ services:
condition: service_completed_successfully condition: service_completed_successfully
runtime: runtime:
condition: service_healthy condition: service_healthy
volumes:
- ./backend:/app/backend
- ./common:/app/common
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
@@ -102,6 +107,8 @@ services:
depends_on: depends_on:
migrate: migrate:
condition: service_completed_successfully condition: service_completed_successfully
volumes:
- ./runtime:/app/runtime
healthcheck: healthcheck:
test: test:
- CMD-SHELL - CMD-SHELL
@@ -133,6 +140,8 @@ services:
depends_on: depends_on:
backend: backend:
condition: service_healthy condition: service_healthy
volumes:
- ./schedule:/app/schedule
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