Skip to content

Commit

Permalink
Add healthcheck on database service (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhelias committed Apr 5, 2024
1 parent 1f04d3f commit fd96941
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doctrine/doctrine-bundle/2.12/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
" # You should definitely change the password in production",
" POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}",
" POSTGRES_USER: ${POSTGRES_USER:-app}",
" healthcheck:",
" test: [\"CMD\", \"pg_isready\"]",
" timeout: 5s",
" retries: 5",
" start_period: 60s",
" volumes:",
" - database_data:/var/lib/postgresql/data:rw",
" # You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!",
Expand Down

0 comments on commit fd96941

Please sign in to comment.