Skip to content

Commit af3061a

Browse files
committed
chore: 调整docker compose yml 配置
1 parent c0922b8 commit af3061a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ services:
1010
env_file:
1111
- .env
1212
restart: always
13-
stop_grace_period: ${SERVER_GRACEFUL_SHUTDOWN_TIMEOUT:-60}s
13+
stop_grace_period: ${SERVER_GRACEFUL_SHUTDOWN_TIMEOUT:-10}s
1414
depends_on:
1515
mysql:
1616
condition: service_healthy
1717
redis:
1818
condition: service_healthy
1919
healthcheck:
20-
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
20+
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-3001}/health"]
2121
interval: 30s
2222
timeout: 10s
2323
retries: 3

0 commit comments

Comments
 (0)