chore: 调整docker compose yml 配置

This commit is contained in:
tbphp
2025-07-15 14:59:49 +08:00
parent c0922b8e8e
commit af3061ad44

View File

@@ -10,14 +10,14 @@ services:
env_file: env_file:
- .env - .env
restart: always restart: always
stop_grace_period: ${SERVER_GRACEFUL_SHUTDOWN_TIMEOUT:-60}s stop_grace_period: ${SERVER_GRACEFUL_SHUTDOWN_TIMEOUT:-10}s
depends_on: depends_on:
mysql: mysql:
condition: service_healthy condition: service_healthy
redis: redis:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"] test: ["CMD", "curl", "-f", "http://localhost:${PORT:-3001}/health"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3