Add healthcheck to postgres too

This commit is contained in:
Christian Mäder 2024-04-19 17:11:14 +02:00
parent 3c8449fbec
commit 26b15f9ff1

View File

@ -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