mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-25 09:44:24 +01:00
feat: add container health check
This commit is contained in:
parent
911fcc61eb
commit
10ae69e17a
@ -13,6 +13,12 @@ services:
|
||||
- TZ=${TZ:-UTC}
|
||||
ports:
|
||||
- 5432:5432
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'pg_isready -U "${POSTGRES_USER:-postgres}"']
|
||||
start_period: 30s
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
# (Optional) when using custom network, see also
|
||||
# https://docs.docker.com/compose/compose-file/compose-file-v3/#networks
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user