-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
227 lines (209 loc) · 5.39 KB
/
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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
version: '2'
services:
# ============================= Rocketchat ==================================
rocketchat:
container_name: rocketchat
image: rocket.chat:0.69.2
restart: unless-stopped
env_file:
- docker/rocketchat.env
ports:
- 3000:3000
depends_on:
- mongo
mongo:
image: mongo:3.2
restart: unless-stopped
volumes:
- ./data/db:/data/db
command: mongod --smallfiles --oplogSize 128
# =============================== Coach =================================
coach:
image: lappis/coach:boilerplate
container_name: coach
image: lappis/bottis:coach
build:
context: .
dockerfile: ./docker/coach.Dockerfile
environment:
- VALIDATION_SPLIT=0.2
- AUGMENTATION_FACTOR=50
env_file:
- ./docker/bot-rocketchat.env
ports:
- 80:80
# ================================= Bot =====================================
bot:
image: lappis/bot:boilerplate
container_name: bot_rocketchat
build:
context: .
dockerfile: ./docker/bot.Dockerfile
restart: unless-stopped
command: make run-console
depends_on:
- actions
- rabbitmq
- tais
- lappisudo
- union_server
- coach
env_file:
- docker/bot-rocketchat.env
ports:
- 5002:5002
defensoria:
image: lappis/bot:defensoria
container_name: tais
restart: unless-stopped
command: make run-api
aix:
image: lappis/bot:aix
container_name: tais
restart: unless-stopped
command: make run-api
# =============================== Analytics =================================
elasticsearch:
build:
context: .
dockerfile: ./docker/elasticsearch.Dockerfile
restart: unless-stopped
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
volumes:
- esbackup:/usr/share/elasticsearch/backup
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- esdata:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:6.4.2
restart: unless-stopped
ports:
- 5601:5601
environment:
- SERVER_PORT=5601
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
- elasticsearch
# =============================== Broker ====================================
rabbitmq:
image: rabbitmq:3-management
restart: unless-stopped
volumes:
- rabbit_data:/var/lib/rabbitmq
ports:
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
rabbitmq-consumer:
build:
context: .
dockerfile: ./docker/rabbitmq/consumer.Dockerfile
restart: unless-stopped
volumes:
- ./rabbitmq/consumer/:/opt/scripts/
depends_on:
- rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
# Analytics config
- ELASTICSEARCH_URL=elasticsearch:9200
- ENVIRONMENT_NAME=localhost
- BOT_VERSION=last-bot-commit-hash
# - ELASTICSEARCH_USER=admin
# - ELASTICSEARCH_PASSWORD=admin
# - ELASTICSEARCH_HTTP_SCHEME=https
# - ELASTICSEARCH_PORT=443
command: python3 /opt/scripts/consume_bot_messages.py
# ============================ Telegram Bot =================================
bot_telegram:
container_name: bot_telegram
build:
context: .
dockerfile: ./docker/bot.Dockerfile
env_file:
- docker/bot-telegram.env
ports:
- 5001:5001
depends_on:
- actions
volumes:
- ./bot:/bot
- ./scripts:/scripts
command: sh -c "make run-telegram"
# ================================= Actions =================================
actions:
container_name: actions
build:
context: .
dockerfile: ./docker/actions.Dockerfile
ports:
- 5055:5055
environment:
- BOTS=localhost:5006;localhost:5007
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
- BROKER_URL=rabbitmq
- BOT_NAME=boilerplate
volumes:
- ./bot/actions:/bot/actions
- ./bot/Makefile:/bot/Makefile
command: sh -c "make run-actions"
# =============================== Notebooks =================================
notebooks:
container_name: notebooks
build:
context: .
dockerfile: ./docker/notebooks.Dockerfile
env_file:
- docker/notebooks.env
volumes:
- ./coach:/work/coach
- ./notebooks:/work/notebooks
- notebook_models:/models:ro
ports:
- 8888:8888
depends_on:
- coach
tais:
image: lappis/bot:latest
restart: unless-stopped
command: make run-api
env_file:
- docker/bot-rocketchat.env
ports:
- 5006:5005
- 5003:5002
union_server:
container_name: rpc_server
build:
context: .
dockerfile: ./docker/union_server/Dockerfile
volumes:
- ./union_server:/opt
environment:
- BROKER_URL=rabbitmq
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
depends_on:
- rabbitmq
command: sh -c "python3 rpc_server.py"
lappisudo:
image: lappis/bot:lappisudo
command: make run-api
ports:
- 5007:5005
- 5004:5002
volumes:
- ./bot:/bot
- ./scripts:/scripts
volumes:
notebook_models:
rabbit_data:
esbackup:
esdata:
driver: local