-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 910 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (26 loc) · 910 Bytes
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
version: '3.4'
services:
source:
image: mysql:${MYSQL_SRC_VERSION:-8.0.22}
environment:
- MYSQL_DATABASE=city
- MYSQL_USER=repl
- MYSQL_PASSWORD=repl
- MYSQL_ROOT_PASSWORD=root_pwd
command: --bind-address=0.0.0.0 --ssl=0 --default-authentication-plugin=mysql_native_password --log-bin=mysql-bin --server-id=1 --enforce_gtid_consistency=ON --gtid_mode=ON
volumes:
- ./docker/source/init.d:/docker-entrypoint-initdb.d
ports:
- '13306:3306'
upstream:
image: mysql:${MYSQL_DST_VERSION:-8.0.22}
environment:
- MYSQL_DATABASE=town
- MYSQL_USER=repl
- MYSQL_PASSWORD=repl
- MYSQL_ROOT_PASSWORD=root_pwd
command: --bind-address=0.0.0.0 --ssl=0 --default-authentication-plugin=mysql_native_password --local_infile=1
volumes:
- ./docker/upstream/init.d:/docker-entrypoint-initdb.d
ports:
- '13307:3306'