forked from lappis-unb/rasa-ptbr-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
85 lines (77 loc) · 2.12 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
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:
build:
context: .
dockerfile: ./docker/bot.Dockerfile
restart: unless-stopped
environment:
- MAX_TYPING_TIME=8
- MIN_TYPING_TIME=1
- WORDS_PER_SECOND_TYPING=10
- ROCKETCHAT_URL=rocketchat:3000
- ROCKETCHAT_ADMIN_USERNAME=admin
- ROCKETCHAT_ADMIN_PASSWORD=admin
- ROCKETCHAT_BOT_USERNAME=bot
- ROCKETCHAT_BOT_PASSWORD=bot
# Should be set to 'production' or 'beta' or 'dev'
- ENVIRONMENT_NAME=localhost
# Last commit hash using this command: git rev-parse HEAD
- BOT_VERSION=last-commit-hash
# Analytics config
- ENABLE_ANALYTICS=False
- ELASTICSEARCH_URL=elasticsearch:9200
# HTTP login on elasticsearch
# - ELASTICSEARCH_USER=admin
# - ELASTICSEARCH_PASSWORD=admin
# - ELASTICSEARCH_HTTP_SCHEME=https
# - ELASTICSEARCH_PORT=443
ports:
- 5005:5005
- 5002:5002
depends_on:
- actions
volumes:
- ./bot:/bot
- ./scripts:/scripts
actions:
build:
context: .
dockerfile: ./docker/actions.Dockerfile
ports:
- 5055:5055
volumes:
- ./bot/actions:/bot/actions
- ./bot/Makefile:/bot/Makefile
command: "make run-actions"
# =============================== Notebooks =================================
notebooks:
build:
context: .
dockerfile: ./docker/notebooks.Dockerfile
volumes:
- ./bot:/work/bot
- ./notebooks:/work/notebooks
ports:
- 8888:8888