-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (86 loc) · 1.92 KB
/
docker-compose.yml
File metadata and controls
92 lines (86 loc) · 1.92 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
86
87
88
89
90
91
92
services:
# API Gateway
gateway:
build:
context: .
dockerfile: services/gateway/Dockerfile
ports:
- "8000:8000"
environment:
- DATABASE_URL=sqlite+aiosqlite:///data/brain.db
- INGESTION_SERVICE_URL=http://ingestion:8001
- SEARCH_SERVICE_URL=http://search:8002
- KNOWLEDGE_SERVICE_URL=http://knowledge:8003
- CHAT_SERVICE_URL=http://chat:8004
volumes:
- ./storage:/data
- ./brain.yml:/app/brain.yml
depends_on:
- ingestion
- search
- knowledge
- chat
networks:
- brain-network
# Ingestion Service
ingestion:
build:
context: .
dockerfile: services/ingestion/Dockerfile
ports:
- "8001:8001"
environment:
- DATABASE_URL=sqlite+aiosqlite:///data/brain.db
volumes:
- ./storage:/data
- ./docs:/docs
- ./brain.yml:/app/brain.yml
networks:
- brain-network
# Search Service
search:
build:
context: .
dockerfile: services/search/Dockerfile
ports:
- "8002:8002"
environment:
- DATABASE_URL=sqlite+aiosqlite:///data/brain.db
volumes:
- ./storage:/data
- ./brain.yml:/app/brain.yml
networks:
- brain-network
# Knowledge Graph Service
knowledge:
build:
context: .
dockerfile: services/knowledge/Dockerfile
ports:
- "8003:8003"
environment:
- DATABASE_URL=sqlite+aiosqlite:///data/brain.db
volumes:
- ./storage:/data
- ./brain.yml:/app/brain.yml
networks:
- brain-network
# Chat Service
chat:
build:
context: .
dockerfile: services/chat/Dockerfile
ports:
- "8004:8004"
environment:
- DATABASE_URL=sqlite+aiosqlite:///data/brain.db
volumes:
- ./storage:/data
- ./brain.yml:/app/brain.yml
networks:
- brain-network
networks:
brain-network:
driver: bridge
volumes:
brain-data: