-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.47 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
neo4j:
image: neo4j:5.26
container_name: neo4j
environment:
NEO4J_AUTH: neo4j/password123
NEO4J_PLUGINS: '["apoc"]'
NEO4J_dbms_security_procedures_allowlist: apoc.*
NEO4J_dbms_security_procedures_unrestricted: apoc.*
NEO4J_apoc_import_file_enabled: "true"
NEO4J_apoc_export_file_enabled: "true"
NEO4J_server_memory_pagecache_size: 512M
NEO4J_server_memory_heap_initial__size: 512M
NEO4J_server_memory_heap_max__size: 512M
ports:
- "7474:7474"
- "7687:7687"
volumes:
- ./data:/var/lib/neo4j/import
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p password123 'RETURN 1'" ]
interval: 10s
timeout: 10s
retries: 10
hospital_neo4j_etl:
build:
context: ./hospital_neo4j_etl
env_file:
- .env
volumes:
- ./data:/app/data
environment:
NEO4J_URI: bolt://neo4j:7687
NEO4J_USERNAME: neo4j
NEO4J_PASSWORD: password123
NEO4J_DATABASE: neo4j
depends_on:
neo4j:
condition: service_healthy
chatbot_api:
build:
context: ./chatbot_api
env_file:
- .env
command: uvicorn main:app --host 0.0.0.0 --port 8000
depends_on:
neo4j:
condition: service_healthy
ports:
- "8000:8000"
chatbot_frontend:
build:
context: ./chatbot_frontend
env_file:
- .env
depends_on:
- chatbot_api
ports:
- "8501:8501"