Skip to content

Commit

Permalink
build: add health check to postgres container
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Sep 30, 2024
1 parent e76d2ae commit 59fbc9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ services:
ports:
- "5432:5432"
command: -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key -c ssl_ca_file=/var/lib/postgresql/root.crt
healthcheck:
test: ["CMD-SHELL", "pg_isready -U moov"]
interval: 5s
timeout: 5s
retries: 5
environment:
- POSTGRES_DB=moov
- POSTGRES_USER=moov
Expand Down

0 comments on commit 59fbc9d

Please sign in to comment.