-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (40 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
42 lines (40 loc) · 1.13 KB
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
version: '3'
services:
bot:
build:
context: .
dockerfile: ./docker/bot.Dockerfile
stdin_open: true
tty: true
environment:
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- TELEGRAM_BOT_USERNAME=${TELEGRAM_BOT_USERNAME}
- TELEGRAM_WEBHOOK=${TELEGRAM_WEBHOOK}
- IP_ADDRESS=${IP_ADDRESS}
- FB_VERIFY=${FB_VERIFY}
- FB_SECRET=${FB_SECRET}
- FB_ACCESS_TOKEN=${FB_ACCESS_TOKEN}
- ENDPOINT_ACTIONS=http://actions:5055/webhook
ports:
- 5001:5001
depends_on:
- actions
volumes:
- ./bot:/bot
command: sh -c "make train && make run-telegram"
actions:
build:
context: .
dockerfile: ./docker/actions.Dockerfile
environment:
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- TELEGRAM_BOT_USERNAME=${TELEGRAM_BOT_USERNAME}
- TELEGRAM_WEBHOOK=${TELEGRAM_WEBHOOK}
- IP_ADDRESS=${IP_ADDRESS}
- ENVIRONMENT=homolog
ports:
- 5055:5055
volumes:
- ./bot/actions:/bot/actions
- ./bot/Makefile:/bot/Makefile
command: "make run-actions"