Skip to content

Commit fd96941

Browse files
authored
Add healthcheck on database service (#1304)
1 parent 1f04d3f commit fd96941

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doctrine/doctrine-bundle/2.12/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
" # You should definitely change the password in production",
2929
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
3030
" POSTGRES_USER: ${POSTGRES_USER:-app}",
31+
" healthcheck:",
32+
" test: [\"CMD\", \"pg_isready\"]",
33+
" timeout: 5s",
34+
" retries: 5",
35+
" start_period: 60s",
3136
" volumes:",
3237
" - database_data:/var/lib/postgresql/data:rw",
3338
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",

0 commit comments

Comments
 (0)