-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
210 lines (189 loc) · 5.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
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
version: '2'
services:
# ============================= Rocketchat ==================================
rocketchat:
image: rocket.chat:0.69.2
restart: unless-stopped
environment:
- PORT=3000
- ROOT_URL=http://localhost:3000
- MONGO_URL=mongodb://mongo:27017/rocketchat
- ADMIN_USERNAME=admin
- ADMIN_PASS=admin
ports:
- 3000:3000
depends_on:
- mongo
mongo:
image: mongo:3.2
restart: unless-stopped
volumes:
- ./data/db:/data/db
command: mongod --smallfiles --oplogSize 128
# ================================= Bot =====================================
bot:
image: lappis/bot:tais
build:
context: .
dockerfile: ./docker/bot/bot.Dockerfile
restart: unless-stopped
command: make run-rocketchat
depends_on:
- rocketchat
# OR
# command: make run-console
env_file:
- ./docker/bot/bot.env
ports:
- 5005:5005
volumes:
- ./bot:/bot
- ./scripts:/scripts
# =================================== Web ===================================
web:
image: lappis/web:tais
build:
context: .
dockerfile: ./docker/web/web.Dockerfile
restart: unless-stopped
environment:
- PORT=8000
- ROCKETCHAT_URL=http://localhost:3000
- ALLOWED_HOSTS=localhost
- PREFIX_URL=
volumes:
- ./web:/web
ports:
- 8000:8000
depends_on:
- webdb
webdb:
image: postgres:10.5
restart: unless-stopped
volumes:
- web_db:/var/lib/postgresql/data
# =================================== Kibana-Web ===================================
kibana-web:
build:
context: .
dockerfile: ./docker/kibana/kibana-web.Dockerfile
restart: unless-stopped
environment:
- PORT=8080
- ALLOWED_HOSTS=localhost
- PREFIX_URL=
volumes:
- ./kibana-web:/kibana-web
ports:
- 8080:8080
depends_on:
- kibana-webdb
kibana-webdb:
image: postgres:10.5
restart: unless-stopped
volumes:
- ./kibana-web/postgres-data:/var/lib/postgresql/data
# =============================== 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
kibana-tais:
build:
context: .
dockerfile: ./docker/kibana/kibana-tais.Dockerfile
restart: unless-stopped
environment:
- PORT=8081
- ALLOWED_HOSTS=localhost
- PREFIX_URL=
volumes:
- ./kibana-tais:/kibana-tais
ports:
- 8081:8081
depends_on:
- kibana-taisdb
kibana-taisdb:
image: postgres:10.5
restart: unless-stopped
volumes:
- ./kibana-tais/postgres-data:/var/lib/postgresql/data
ports:
- 5031:5032
# =============================== Broker ====================================
rabbitmq:
image: rabbitmq:3-management
restart: unless-stopped
volumes:
- ./data/rabbitmq:/var/lib/rabbitmq
ports:
- 8085: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
# =============================== Notebooks =================================
notebooks:
build:
context: .
dockerfile: ./docker/notebooks/notebooks.Dockerfile
environment:
- BOT_DIR_PATH=../../coach/
- BOT_DOMAIN_PATH=../../coach/domain.yml
- BOT_NLU_CONFIG_PATH=../../coach/nlu_config.yml
- BOT_STORIES_PATH=../../coach/data/stories/
- BOT_INTENTS_PATH=../../coach/data/intents/
- BOT_MODELS_PATH=../../coach/models/
- BOT_MODELS_NLU_PATH=../../coach/models/nlu/current/
- BOT_MODELS_DIALOGUE_PATH=../../coach/models/dialogue
volumes:
- ./coach:/work/bot
- ./notebooks:/work/notebooks
- ./docs/tutoriais/:/work/tutoriais
ports:
- 8888:8888
volumes:
web_db:
esdata:
driver: local
esbackup: