forked from it-klaster/hackaton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
42 lines (39 loc) · 996 Bytes
/
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
version: '2'
services:
bot:
build: .
environment:
DEBUG: 'True'
PROXY: 'socks5h://49.12.4.194:15149'
DB_URI: "mysql+mysqldb://root:root@db:3306/bot_db?use_unicode=1&charset=utf8mb4"
depends_on:
- db
volumes:
- ./:/code
command: ["python", "chat_bot/main.py"]
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