forked from haza-brasil/rasa-ptbr-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (91 loc) · 2.29 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
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: bot
build:
context: .
dockerfile: ./docker/bot.Dockerfile
restart: unless-stopped
command: make run-rocketchat
env_file:
- docker/bot.env
ports:
- 5002:5002
depends_on:
- actions
volumes:
- ./bot:/bot
- ./scripts:/scripts
command: sh -c "make run-rocketchat"
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:
build:
context: .
dockerfile: ./docker/notebooks.Dockerfile
env_file:
- docker/notebooks.env
volumes:
- ./bot:/work/bot
- ./notebooks:/work/notebooks
ports:
- 8888:8888
# =============================== 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
volumes:
esdata:
driver: local
esbackup: