File tree 3 files changed +23
-1
lines changed
3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ docker run -d --restart=always \
124
124
| KEEPALIVED_UNICAST_PEER | X | Y |
125
125
| KEEPALIVED_VIRTUAL_IPADDRESS | X | Y |
126
126
127
- ## docker swarm see [ keepalived-service.yml] ( ./keepalived-service.yml )
127
+ ## Example
128
+
129
+ _ docker swarm service see [ keepalived-service.yml] ( ./example/keepalived-service.yml ) _
128
130
129
131
### deploy to swarm cluster
130
132
@@ -134,3 +136,5 @@ docker run -d --restart=always \
134
136
* ` <node> ` see cluster nodes ` docker node ls `
135
137
* ` docker node update --label-add <label> <node> `
136
138
* ` docker stack deploy -c keepalived-service.yml keepalived `
139
+
140
+ _ docker service see [ docker-compose.yml] ( ./example/docker-compose.yml ) _
Original file line number Diff line number Diff line change
1
+ ---
2
+ version : ' 3.9'
3
+
4
+ services :
5
+ master :
6
+ image : rootshellcoder/swarm-keepalived:latest
7
+ environment :
8
+ KEEPALIVED_UNICAST_SRC_IP : " 172.16.5.4"
9
+ KEEPALIVED_UNICAST_PEER : " 172.16.5.5, 172.16.5.6"
10
+ KEEPALIVED_VIRTUAL_IPADDRESS : " 192.168.100.254, 192.168.10.254"
11
+ KEEPALIVED_PRIORITY : " 200"
12
+ KEEPALIVED_INTERFACE : " eth0"
13
+ network_mode : host
14
+ restart : always
15
+ cap_add :
16
+ - NET_ADMIN
17
+ - NET_BROADCAST
18
+ - NET_RAW
File renamed without changes.
You can’t perform that action at this time.
0 commit comments