-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
56 lines (48 loc) · 1.16 KB
/
docker-compose.yaml
File metadata and controls
56 lines (48 loc) · 1.16 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
43
44
45
46
47
48
49
50
51
52
version: "3"
services:
auth_db:
image: mariadb:10.3.16
container_name: auth_db
ports:
- 3306
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: auth
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
LANG: 'en_US.UTF-8'
volumes:
- ./init_auth.sql:/docker-entrypoint-initdb.d/init_auth.sql:ro
data_db:
image: mariadb:10.3.16
container_name: data_db
ports:
- 3306
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: datadb
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
LANG: 'en_US.UTF-8'
volumes:
- ./init_data.sql:/docker-entrypoint-initdb.d/init_data.sql
- ./init_data_categories.sql:/docker-entrypoint-initdb.d/init_data_categories.sql
bot:
container_name: bot
build:
context: .
dockerfile: Dockerfile_bot
depends_on:
- auth_db
- data_db
links:
- auth_db
- data_db
volumes:
- ../src:/src
tty: true
# command: python3 /src/main.py