Skip to content

Commit

Permalink
chore: Add healthcheck to neo4j service (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-paliychuk authored Sep 25, 2024
1 parent 38493e4 commit 944a32c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker-compose.ce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ services:
timeout: 5s
retries: 3
depends_on:
- neo4j
neo4j:
condition: service_healthy
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- MODEL_NAME=gpt-4o-mini
Expand All @@ -62,6 +63,12 @@ services:
image: neo4j:5.22.0
networks:
- zep-network
healthcheck:
test: wget http://localhost:7474 || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
ports:
- "7474:7474" # HTTP
- "${NEO4J_PORT}:${NEO4J_PORT}" # Bolt
Expand Down

0 comments on commit 944a32c

Please sign in to comment.