-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.sample.yml
More file actions
121 lines (111 loc) · 2.57 KB
/
docker-compose.sample.yml
File metadata and controls
121 lines (111 loc) · 2.57 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
services:
site:
image: cofacts/rumors-site:latest-en
env_file:
- ./env-files/site
ports:
- "2999:3000"
depends_on:
api:
condition: service_healthy
collab-server:
image: cofacts/collab-server
env_file:
- ./env-files/collab-server
ports:
- "5002:5002"
depends_on:
db:
condition: service_healthy
api:
image: cofacts/rumors-api
env_file:
- ./env-files/api
volumes:
- "./volumes/api:/data"
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
url-resolver:
condition: service_started
healthcheck:
test: ["CMD-SHELL", "curl -sfS http://localhost:5000/ || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
db:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2
environment:
- path.repo=/usr/share/elasticsearch/data
volumes:
- "./volumes/db-sample:/usr/share/elasticsearch/data"
ports:
- "62222:9200"
healthcheck:
test: ["CMD-SHELL", "curl -sfS http://localhost:9200 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
url-resolver:
image: cofacts/url-resolver
ports: # expose for debugging
- "4000:4000"
env_file:
- ./env-files/url-resolver
line-bot-zh:
image: cofacts/rumors-line-bot:dev
env_file:
- ./env-files/line-bot-zh
ports:
- "5001:5001"
depends_on:
api:
condition: service_healthy
mongo:
condition: service_started
redis:
condition: service_started
redis:
image: redis
mongo:
image: mongo:3.6
env_file:
- ./env-files/mongo
ports:
- "27017:27017"
volumes:
- "./volumes/mongo:/data/db"
command: mongod
# cofacts.ai AI agent backend (ADK)
adk:
image: cofacts/adk:latest
restart: always
env_file:
- ./env-files/adk
environment:
- PORT=8000
- LANGFUSE_BASE_URL=https://langfuse.cofacts.tw
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 60s
start_interval: 5s
timeout: 5s
retries: 6
start_period: 60s
# cofacts.ai website frontend
cofacts-ai:
image: cofacts/site:latest
restart: always
ports:
- "3000:3000"
environment:
- PORT=3000
- ADK_URL=http://adk:8000
- PUBLIC_URL=http://localhost:3000
depends_on:
adk:
condition: service_healthy