-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 1.11 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
version: "3"
services:
primary-mysql:
platform: linux/x86_64
image: mysql:5.7
restart: on-failure
environment:
MYSQL_DATABASE: test_db
# MYSQL_USER: root
MYSQL_PASSWORD: ''
MYSQL_ROOT_PASSWORD: ''
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
ports:
- target: 3306
published: 3306
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- "--innodb-use-native-aio=0"
volumes:
- "$HOME/mnt/strada/primary-mysql:/var/lib/strada/primary-mysql"
secondary-mysql:
platform: linux/x86_64
image: mysql:5.7
restart: on-failure
environment:
MYSQL_DATABASE: test_db
# MYSQL_USER: root
MYSQL_PASSWORD: ''
MYSQL_ROOT_PASSWORD: ''
MYSQL_ALLOW_EMPTY_PASSWORD: 'true'
ports:
- target: 3306
published: 3307
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
- "--innodb-use-native-aio=0"
volumes:
- "$HOME/mnt/strada/secondary-mysql:/var/lib/strada/secondary-mysql"
depends_on:
- primary-mysql