-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (52 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
57 lines (52 loc) · 1.39 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
53
54
55
56
57
version: '3.8'
services:
# База данных для UMS (User Management System)
mysql-ums:
image: mysql:8.0
container_name: bird-mysql-ums
environment:
MYSQL_ROOT_PASSWORD: passw
MYSQL_DATABASE: ums
MYSQL_ROOT_HOST: '%'
ports:
- "3306:3306"
volumes:
- ums-data:/var/lib/mysql
- ./database/ums.sql:/docker-entrypoint-initdb.d/01-init.sql
networks:
- bird-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-ppassw"]
interval: 10s
timeout: 5s
retries: 5
command: --default-authentication-plugin=mysql_native_password
# База данных для Twitter
mysql-twitter:
image: mysql:8.0
container_name: bird-mysql-twitter
environment:
MYSQL_ROOT_PASSWORD: passw
MYSQL_DATABASE: twitter
MYSQL_ROOT_HOST: '%'
ports:
- "3307:3306"
volumes:
- twitter-data:/var/lib/mysql
- ./database/twitter.sql:/docker-entrypoint-initdb.d/01-init.sql
networks:
- bird-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-ppassw"]
interval: 10s
timeout: 5s
retries: 5
command: --default-authentication-plugin=mysql_native_password
volumes:
ums-data:
driver: local
twitter-data:
driver: local
networks:
bird-network:
driver: bridge