-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.27 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'
services:
repl1:
container_name: "repl1"
image: percona/percona-server:8.0
restart: always
security_opt:
- seccomp:unconfined
environment:
MYSQL_ROOT_PASSWORD: 00#Abc#123
TZ: "Asia/Shanghai"
ports:
- "3316:3306"
volumes:
# create volumes for use
- ./repl1/data:/var/lib/mysql
# bind mount my local my.cnf
- ./repl1/my.cnf:/etc/my.cnf
- ./repl1/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
networks:
- mysql
repl2:
container_name: "repl2"
image: percona/percona-server:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: 00#Abc#123
TZ: "Asia/Shanghai"
ports:
- "3317:3306"
volumes:
# create volumes for use
- ./repl2/data:/var/lib/mysql
# bind mount my local my.cnf
- ./repl2/my.cnf:/etc/my.cnf
- ./repl2/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
networks:
- mysql
depends_on:
- repl1
orch:
container_name: "orch"
image: openarkcode/orchestrator
restart: always
ports:
- "3000:3000"
volumes:
# create volumes for use
- ./orchestrator.conf.json:/etc/orchestrator.conf.json
networks:
- mysql
networks:
mysql:
name: mysql