-
Notifications
You must be signed in to change notification settings - Fork 36
/
docker-compose.yml.basic
53 lines (53 loc) · 1006 Bytes
/
docker-compose.yml.basic
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
version: "2.0"
services:
mysql1:
image: mysql:5.7
ports:
- "13306:3306"
volumes:
- ./conf/mysql/mysql1:/etc/mysql/conf.d
networks:
- backend
environment:
- MYSQL_ROOT_PASSWORD=root
mysql2:
image: mysql:5.7
ports:
- "13307:3306"
volumes:
- ./conf/mysql/mysql2:/etc/mysql/conf.d
networks:
- backend
depends_on:
- mysql1
environment:
- MYSQL_ROOT_PASSWORD=root
mysql3:
image: mysql:5.7
ports:
- "13308:3306"
volumes:
- ./conf/mysql/mysql3:/etc/mysql/conf.d
networks:
- backend
depends_on:
- mysql1
environment:
- MYSQL_ROOT_PASSWORD=root
proxysql:
image: proxysql/proxysql:latest
ports:
- "16033:6033"
- "16032:6032"
volumes:
- ./conf/proxysql/proxysql.cnf:/etc/proxysql.cnf
depends_on:
- mysql1
- mysql2
- mysql3
networks:
- frontend
- backend
networks:
frontend:
backend: