-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (80 loc) · 1.72 KB
/
docker-compose.yml
File metadata and controls
85 lines (80 loc) · 1.72 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Top-level docker-compose for all services and databases
# Top-level docker-compose for all services and databases
version: '3.8'
services:
ocr:
build:
context: ./services/ocr
container_name: ocr
ports:
- "8001:8000"
volumes:
- ./data/uploads:/app/data/uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/ocr/upload"]
interval: 30s
timeout: 10s
retries: 3
environment:
- PYTHONUNBUFFERED=1
depends_on:
- postgres
- neo4j
ner:
build:
context: ./services/ner
container_name: ner
ports:
- "8002:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/ner/parse"]
interval: 30s
timeout: 10s
retries: 3
environment:
- PYTHONUNBUFFERED=1
depends_on:
- postgres
- neo4j
standardizer:
build:
context: ./services/standardizer
container_name: standardizer
ports:
- "8003:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/standardize"]
interval: 30s
timeout: 10s
retries: 3
environment:
- PYTHONUNBUFFERED=1
depends_on:
- postgres
- neo4j
postgres:
image: postgres:15
container_name: postgres
restart: always
environment:
POSTGRES_USER: suxuser
POSTGRES_PASSWORD: suxpass
POSTGRES_DB: sux_db
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
neo4j:
image: neo4j:5.19
container_name: neo4j
restart: always
environment:
NEO4J_AUTH: neo4j/surxitpass123
ports:
- "7474:7474"
- "7687:7687"
volumes:
- neo4jdata:/data
volumes:
pgdata:
neo4jdata: