-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.24 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
services:
telegram-bot-handler:
build:
context: ./listen_and_repeat_bot/bot_handler
restart: always
init: true
environment:
PYTHONPATH: .
TZ: ${TZ}
BOT_API_KEY: ${BOT_API_KEY}
POLL_CHANNELS_URL: ${POLL_CHANNELS_URL}
ANSWERS_FILE: ${ANSWERS_FILE}
QUESTIONS_DB_FILE: ${QUESTIONS_DB_FILE}
USERS_DB_FILE: ${USERS_DB_FILE}
LOGLEVEL:
GIT_VERSION:
volumes:
- type: volume
source: data-storage
target: /listen_and_repeat_bot/listen_and_repeat_bot/bot_handler/data
networks:
internal-network:
telegram-poll-channels:
build:
context: ./listen_and_repeat_bot/poll_channels
restart: always
init: true
environment:
PYTHONPATH: .
TZ: ${TZ}
LISTEN_ADDRESS: ${LISTEN_ADDRESS}
PHONE: ${PHONE}
API_ID: ${API_ID}
API_HASH: ${API_HASH}
SESSION_NAME: ${SESSION_NAME}
LOGLEVEL:
GIT_VERSION:
volumes:
- ./secrets/config.yml:/listen_and_repeat_bot/config.yml
- ./secrets/listen_and_repeat.session:/listen_and_repeat_bot/listen_and_repeat.session
networks:
internal-network:
ports:
- "127.0.0.1:8080:8080"
volumes:
data-storage:
networks:
internal-network: