mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-05-07 14:54:33 +02:00
Add healthcheck to postgres too
This commit is contained in:
parent
3c8449fbec
commit
26b15f9ff1
@ -47,6 +47,12 @@ services:
|
|||||||
# postgres
|
# postgres
|
||||||
postgres:
|
postgres:
|
||||||
image: docker.io/postgres:16-alpine
|
image: docker.io/postgres:16-alpine
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready -d db_prod
|
||||||
|
interval: 10s
|
||||||
|
timeout: 30s
|
||||||
|
retries: 5
|
||||||
|
start_period: 20s
|
||||||
env_file: env/postgres.env
|
env_file: env/postgres.env
|
||||||
volumes:
|
volumes:
|
||||||
- netbox-postgres-data:/var/lib/postgresql/data
|
- netbox-postgres-data:/var/lib/postgresql/data
|
||||||
|
Loading…
Reference in New Issue
Block a user