forked from transferwise/pipelinewise-tap-mysql
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (51 loc) · 1.31 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
44
45
46
47
48
49
50
51
52
53
54
version: '3.7'
services:
mariadb_server1:
container_name: "mariadb_server1"
image: mariadb:10.6
volumes:
- ./dev/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
MYSQL_ROOT_PASSWORD: my-secret-passwd
MYSQL_DATABASE: tap_mysql_test
MYSQL_USER: replication_user
MYSQL_PASSWORD: secret123passwd
ports:
- "3306:3306"
command:
--server-id=1
--default-authentication-plugin=mysql_native_password
--log-bin=mysql-bin
--binlog-format=ROW
networks:
- mariadb-cluster
mysql_server:
container_name: 'mysql_server'
image: mysql:5.7
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: master1
MYSQL_DATABASE: tap_mysql_test
MYSQL_USER: replication_user
MYSQL_PASSWORD: secret123passwd
volumes:
- ./dev/init.sql:/docker-entrypoint-initdb.d/init.sql
command:
- --server-id=1
- --gtid-mode=ON
- --enforce-gtid-consistency=ON
- --master-info-repository=TABLE
- --relay-log-info-repository=TABLE
- --binlog-checksum=NONE
- --log-slave-updates=ON
- --log-bin=binlog
- --binlog-format=ROW
networks:
- mariadb-cluster
networks:
mariadb-cluster:
ipam:
driver: default
config:
- subnet: 172.100.0.0/24