forked from lappis-unb/rasa-ptbr-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
164 lines (150 loc) · 4.08 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
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:
container_name: coach
image: botcoach:latest
volumes:
- notebook_models:/notebook_models
command: sh -c "cp -r /src_models/* /notebook_models"
# ================================= Bot =====================================
bot:
image: lappis/bot:boilerplate
container_name: bot_rocketchat
build:
context: .
dockerfile: ./docker/bot.Dockerfile
restart: unless-stopped
command: make run-rocketchat
env_file:
- docker/bot-rocketchat.env
ports:
- 5002:5002
depends_on:
- actions
volumes:
- ./bot:/bot
- ./scripts:/scripts
# =============================== 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:
- ./data/rabbitmq:/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
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
volumes:
notebook_models:
esbackup:
esdata:
driver: local