Update docker-compose.yml
Fix host affinity label
This commit is contained in:
parent
f7b37fdfde
commit
2743fe7d71
@ -9,7 +9,7 @@ mongo-cluster:
|
|||||||
- "${replset_name}"
|
- "${replset_name}"
|
||||||
image: mongo:3.2
|
image: mongo:3.2
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity: "${host_label}"
|
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||||
io.rancher.container.hostname_override: container_name
|
io.rancher.container.hostname_override: container_name
|
||||||
io.rancher.sidekicks: mongo-base, mongo-datavolume
|
io.rancher.sidekicks: mongo-base, mongo-datavolume
|
||||||
volumes_from:
|
volumes_from:
|
||||||
@ -20,7 +20,7 @@ mongo-base:
|
|||||||
net: none
|
net: none
|
||||||
tty: true
|
tty: true
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity: "${host_label}"
|
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||||
io.rancher.container.hostname_override: container_name
|
io.rancher.container.hostname_override: container_name
|
||||||
io.rancher.container.start_once: true
|
io.rancher.container.start_once: true
|
||||||
image: rancher/mongodb-conf:v0.1.0
|
image: rancher/mongodb-conf:v0.1.0
|
||||||
@ -29,7 +29,7 @@ mongo-base:
|
|||||||
mongo-datavolume:
|
mongo-datavolume:
|
||||||
net: none
|
net: none
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.affinity: "${host_label}"
|
io.rancher.scheduler.affinity:host_label: ${host_label}
|
||||||
io.rancher.container.hostname_override: container_name
|
io.rancher.container.hostname_override: container_name
|
||||||
io.rancher.container.start_once: true
|
io.rancher.container.start_once: true
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user