fix: frontend depends app health

This commit is contained in:
wizardchen
2025-09-11 14:15:58 +08:00
committed by lyingbug
parent bff0e742fa
commit 78088057fb
4 changed files with 20 additions and 2 deletions
+8 -1
View File
@@ -7,6 +7,12 @@ services:
volumes:
- data-files:/data/files
- ./config/config.yaml:/app/config/config.yaml
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
environment:
- COS_SECRET_ID=${COS_SECRET_ID}
- COS_SECRET_KEY=${COS_SECRET_KEY}
@@ -102,7 +108,8 @@ services:
ports:
- "${FRONTEND_PORT:-80}:80"
depends_on:
- app
app:
condition: service_healthy
networks:
- WeKnora-network
restart: unless-stopped