-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
85 lines (79 loc) · 1.98 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:
image: bot
build:
context: .
dockerfile: ./docker/bot.Dockerfile
restart: unless-stopped
command: make run-rocketchat
env_file:
- docker/bot.env
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"
# ============================ Telegram Bot =================================
telegram_bot:
build:
context: .
dockerfile: ./docker/bot.Dockerfile
environment:
- TELEGRAM_BOT_USERNAME=lappisbot
- TELEGRAM_TOKEN=token
- TELEGRAM_WEBHOOK=your_webhook_server/webhooks/telegram/webhook
ports:
- 5001:5001
depends_on:
- actions
volumes:
- ./bot:/bot
- ./scripts:/scripts
command: sh -c "make run-telegram"
# =============================== Notebooks =================================
notebooks:
build:
context: .
dockerfile: ./docker/notebooks.Dockerfile
env_file:
- docker/notebooks.env
volumes:
- ./bot:/work/bot
- ./notebooks:/work/notebooks
ports:
- 8888:8888