Skip to content

Commit

Permalink
fix NEO4J_URI and port mapping in docker-compose file (#366)
Browse files Browse the repository at this point in the history
* fix NEO4J_URI and port mapping in docker-compose file

* chore: Update docker-compose file for zep-ce service

---------

Co-authored-by: Daniel Chalef <[email protected]>
  • Loading branch information
ArnoChenFx and danielchalef authored Sep 26, 2024
1 parent 944a32c commit 7bb1576
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions docker-compose.ce.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: zep-ce

services:
zep:
image: zepai/zep:latest
Expand Down Expand Up @@ -45,7 +47,13 @@ services:
networks:
- zep-network
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8003/healthcheck')"]
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8003/healthcheck')",
]
interval: 10s
timeout: 5s
retries: 3
Expand All @@ -55,27 +63,27 @@ services:
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- MODEL_NAME=gpt-4o-mini
- NEO4J_URI=bolt://neo4j:${NEO4J_PORT}
- NEO4J_USER=${NEO4J_USER}
- NEO4J_PASSWORD=${NEO4J_PASSWORD}
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=zepzepzep
- PORT=8003
neo4j:
image: neo4j:5.22.0
networks:
- zep-network
healthcheck:
test: wget http://localhost:7474 || exit 1
test: wget http://localhost:7687 || exit 1
interval: 1s
timeout: 10s
retries: 20
start_period: 3s
ports:
- "7474:7474" # HTTP
- "${NEO4J_PORT}:${NEO4J_PORT}" # Bolt
- "7474:7474" # HTTP
- "7687:7687" # Bolt
volumes:
- neo4j_data:/data
environment:
- NEO4J_AUTH=${NEO4J_USER}/${NEO4J_PASSWORD}
- NEO4J_AUTH=neo4j/zepzepzep
volumes:
neo4j_data:
zep-db:
Expand Down

0 comments on commit 7bb1576

Please sign in to comment.