Skip to content

Commit

Permalink
feat: Add healthcheck to Postgres service based on cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrew82 committed Mar 6, 2024
1 parent fcc857d commit b96fc40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions environments/docker-compose.postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@ services:
volumes:
# - "./nautobot.sql:/tmp/nautobot.sql"
- "postgres_data:/var/lib/postgresql/data"
healthcheck:
test: "pg_isready --username=$$POSTGRES_USER --dbname=$$POSTGRES_DB"
interval: "10s"
timeout: "5s"
retries: 10

volumes:
postgres_data: {}

0 comments on commit b96fc40

Please sign in to comment.