mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-02-16 18:20:53 +01:00
Add healthcheck to postgres too
This commit is contained in:
parent
3c8449fbec
commit
26b15f9ff1
@ -47,6 +47,12 @@ services:
|
||||
# postgres
|
||||
postgres:
|
||||
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
|
||||
volumes:
|
||||
- netbox-postgres-data:/var/lib/postgresql/data
|
||||
|
Loading…
Reference in New Issue
Block a user