Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/add neo4j instance #83

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OPENAI_API_KEY=OPENAI
NEO4J_URL=neo4j+s://demo.neo4jlabs.com
NEO4J_USER=companies
NEO4J_PASS=companies
NEO4J_DATABASE=companies
NEO4J_URL=neo4j://host.docker.internal:7687
NEO4J_USER=neo4j
NEO4J_PASS=password
NEO4J_DATABASE=neo4j
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ services:
- .env
volumes:
- ./api:/api
depends_on:
neo4j:
condition: service_healthy
frontend:
build:
context: ./ui
Expand All @@ -20,3 +23,23 @@ services:
container_name: ui
ports:
- 4173:4173
env_file:
- .env
depends_on:
neo4j:
condition: service_healthy
neo4j:
image: "neo4j:5.9.0"
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
ports:
- 7687:7687
- 7474:7474
healthcheck:
test: ["CMD", "wget", "http://localhost:7474"]
interval: 30s
timeout: 10s
retries: 2
start_period: 40s