-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
45 lines (42 loc) · 1.14 KB
/
docker-compose.yaml
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
version: '2'
services:
bot:
build: .
environment:
PYTHONUNBUFFERED: 1
DEBUG: 'True'
PROXY: 'socks5h://173.248.156.213:31648' #https://50na50.net/ru/proxy/socks5list
DB_URI: "mysql+mysqldb://root:root@db:3306/bot_db?use_unicode=1&charset=utf8mb4"
BOT_TOKEN: '1205108650:AAFLE6D3iQDuP3IneF7fwsMMm4jxCgm0ts0'
depends_on:
- db
volumes:
- ./:/code
command: ["python", "chat_bot/main.py"]
restart: always
admin:
build: .
environment:
DEBUG: 'True'
DB_URI: "mysql+mysqldb://root:root@db:3306/bot_db?use_unicode=1&charset=utf8mb4"
depends_on:
- db
volumes:
- ./:/code
ports:
- 5000:5000
restart: on-failure
command: ["python", "admin/app.py"]
db:
build:
context: .
dockerfile: Dockerfile-DB
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "32000:3306"
adminer:
image: adminer
restart: always
ports:
- 8080:8080