-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 984 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.8'
services:
neo4j:
image: neo4j:latest
environment:
NEO4J_AUTH: "neo4j/test1234"
NEO4JLABS_PLUGINS: '["graph-data-science"]'
NEO4J_dbms_security_procedures_unrestricted: "gds.*,apoc.*"
ports:
- "7474:7474" # Web interface
- "7687:7687" # Bolt for app
volumes:
- neo4j_data:/data
healthcheck:
test: ["CMD", "bash", "-c", "echo > /dev/tcp/localhost/7687"]
interval: 20s
timeout: 20s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
environment:
directory: "../example_data"
mode: "size"
chunk_size: "300"
overlap_size: "20"
txt_separator: "\n\n"
NEO4J_URI: "bolt://neo4j:7687"
NEO4J_USER: "neo4j"
NEO4J_PASSWORD: "test1234"
depends_on:
neo4j:
condition: service_healthy
ports:
- "8000:8000"
volumes:
- ./src:/app/src
- ./tests:/app/tests
volumes:
neo4j_data: