-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcluster-ip.yaml
81 lines (80 loc) · 1.62 KB
/
cluster-ip.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "2"
services:
nacos1:
image: paderlol/nacos:latest
container_name: nacos1
networks:
nacos_net:
ipv4_address: 172.16.238.10
volumes:
- ./logs:/home/nacos/logs
ports:
- "8848:8848"
- "9555:9555"
env_file:
- ./env/nacos-ip.env
restart: always
depends_on:
- mysql-master
- mysql-slave
nacos2:
image: paderlol/nacos:latest
container_name: nacos2
networks:
nacos_net:
ipv4_address: 172.16.238.11
ports:
- "8849:8848"
env_file:
- ./env/nacos-ip.env
restart: always
depends_on:
- mysql-master
- mysql-slave
nacos3:
image: paderlol/nacos:latest
container_name: nacos3
networks:
nacos_net:
ipv4_address: 172.16.238.12
ports:
- "8850:8848"
env_file:
- ./env/nacos-ip.env
restart: always
depends_on:
- mysql-master
- mysql-slave
mysql-master:
container_name: mysql-master
image: paderlol/nacos-mysql-master:latest
networks:
nacos_net:
ipv4_address: 172.16.238.13
env_file:
- ./env/mysql-common.env
- ./env/mysql-master.env
volumes:
- ./mysql:/var/lib/mysql
ports:
- "3306:3306"
mysql-slave:
container_name: mysql-slave
image: paderlol/nacos-mysql-slave:latest
networks:
nacos_net:
ipv4_address: 172.16.238.14
env_file:
- ./env/mysql-common.env
- ./env/mysql-slave.env
ports:
- "3305:3306"
depends_on:
- mysql-master
networks:
nacos_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24