Skip to content

Commit

Permalink
Add healthcheck to postgres too
Browse files Browse the repository at this point in the history
  • Loading branch information
cimnine committed Apr 19, 2024
1 parent 37e8621 commit c2f509b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2f509b

Please sign in to comment.