forked from RocketChat/rasa-kick-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (37 loc) · 1023 Bytes
/
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
version: '3'
services:
rocketchat:
image: rocket.chat:latest
restart: unless-stopped
volumes:
- ./uploads:/app/uploads
environment:
- PORT=3000
- ROOT_URL=http://localhost:3000
- MONGO_URL=mongodb://mongo:27017/rocketchat
- MONGO_OPLOG_URL=mongodb://mongo:27017/local
depends_on:
- mongo
ports:
- 3000:3000
mongo:
image: mongo:3.2
restart: unless-stopped
volumes:
- ./data_db/db:/data/db
command: mongod --smallfiles --oplogSize 128 --replSet rs0
# this container's job is just run the command to initialize the replica set.
# it will run the command and remove himself (it will not stay running)
mongo-init-replica:
image: mongo:3.2
command: 'mongo mongo/rocketchat --eval "rs.initiate({ _id: ''rs0'', members: [ { _id: 0, host: ''localhost:27017'' } ]})"'
depends_on:
- mongo
bot_rasa:
image: rasa/rasa
volumes:
- ./bot_rasa:/app
command:
- run
ports:
- 5005:5005