Skip to content

Commit b99457e

Browse files
committed
Add start period to healthcheck
1 parent 9cde5d7 commit b99457e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
order: start-first
2020
healthcheck:
2121
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
22+
start_period: 1s
2223
interval: 30s
2324
timeout: 10s
2425
retries: 3
@@ -60,6 +61,7 @@ services:
6061
condition: on-failure
6162
healthcheck:
6263
test: ["CMD", "pg_isready", "-U", "db"]
64+
start_period: 0s
6365
interval: 30s
6466
timeout: 10s
6567
retries: 3

0 commit comments

Comments
 (0)