-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
74 lines (59 loc) · 1.37 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
services:
mongodb:
image: mongo
ports:
- "27529:27017"
volumes:
- ./db:/data/db
environment:
- TZ=Europe/Moscow
restart: unless-stopped
env_file:
- .env
bot:
build: .
volumes:
- .:/omi_telebot
environment:
PYTHONUNBUFFERED: 1
TZ: Europe/Moscow
command: python3 polling.py
restart: unless-stopped
api_server:
build: .
volumes:
- .:/omi_telebot
environment:
PYTHONUNBUFFERED: 1
TZ: Europe/Moscow
command: sh -c "python3 -m api_server.server"
ports:
- "25013:25013"
restart: unless-stopped
shop_listener:
build: .
volumes:
- .:/omi_telebot
environment:
PYTHONUNBUFFERED: 1
TZ: Europe/Moscow
command: sh -c "python3 -m listener"
restart: unless-stopped
collect_strings:
build: .
volumes:
- .:/omi_telebot
command: bash -c "pybabel extract --input-dirs=. --ignore venv -k __ -o locales/omi_telebot.pot && pybabel update -d locales -D omi_telebot -i locales/omi_telebot.pot"
compile_strings:
build: .
volumes:
- .:/omi_telebot
command: pybabel compile -d locales -D omi_telebot
add_lang:
build: .
volumes:
- .:/omi_telebot
command: bash -c "pybabel init -d locales -D omi_telebot -i locales/omi_telebot.pot -l en"
networks:
es-net:
driver: bridge