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
restart: always
stop_grace_period: ${SERVER_GRACEFUL_SHUTDOWN_TIMEOUT:-60}s
stop_grace_period: ${SERVER_GRACEFUL_SHUTDOWN_TIMEOUT:-10}s
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-3001}/health"]
interval: 30s
timeout: 10s
retries: 3