Skip to content

Commit

Permalink
docker compose healthcheck for postgres (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielchalef committed May 20, 2023
1 parent c608a29 commit 8a07650
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ services:
dockerfile: Dockerfile.postgres
networks:
- zep-network
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
interval: 5s
timeout: 5s
retries: 5
zep:
image: ghcr.io/getzep/zep:latest
container_name: zep
restart: on-failure
depends_on:
- db
db:
condition: service_healthy
ports:
- "8000:8000"
configs:
Expand Down

0 comments on commit 8a07650

Please sign in to comment.