changed to concret image tag, fixed indent, removed implicit labels
This commit is contained in:
parent
386c09cb07
commit
437811ece4
41
templates/nsq/0/docker-compose.yml
Normal file
41
templates/nsq/0/docker-compose.yml
Normal file
@ -0,0 +1,41 @@
|
||||
version: '2'
|
||||
services:
|
||||
nsqlookupd01:
|
||||
image: nsqio/nsq:v1.0.0-compat
|
||||
command: /nsqlookupd
|
||||
nsqlookupd02:
|
||||
image: nsqio/nsq:v1.0.0-compat
|
||||
command: /nsqlookupd
|
||||
nsqlookupd03:
|
||||
image: nsqio/nsq:v1.0.0-compat
|
||||
command: /nsqlookupd
|
||||
nsqd:
|
||||
image: nsqio/nsq:v1.0.0-compat
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- nsqd --data-path=/data --lookupd-tcp-address=nsqlookupd01:4160 --lookupd-tcp-address=nsqlookupd02:4160 --lookupd-tcp-address=nsqlookupd03:4160 -broadcast-address=$$HOSTNAME
|
||||
labels:
|
||||
io.rancher.scheduler.affinity:host_label_soft: nsqd=true
|
||||
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
||||
io.rancher.sidekicks: data
|
||||
io.rancher.container.hostname_override: container_name
|
||||
volumes_from:
|
||||
- data
|
||||
nsqadmin:
|
||||
image: nsqio/nsq:v1.0.0-compat
|
||||
command: /nsqadmin --lookupd-http-address=nsqlookupd01:4161 --lookupd-http-address=nsqlookupd02:4161 --lookupd-http-address=nsqlookupd03:4161
|
||||
nsq-lb:
|
||||
image: rancher/lb-service-haproxy:v0.7.9
|
||||
ports:
|
||||
- 4150:4150/tcp
|
||||
- 4151:4151/tcp
|
||||
- 4171:4171/tcp
|
||||
data:
|
||||
image: busybox
|
||||
command: /bin/true
|
||||
net: none
|
||||
volumes:
|
||||
- /data
|
||||
labels:
|
||||
io.rancher.container.start_once: 'true'
|
@ -1,43 +0,0 @@
|
||||
nsqlookupd01:
|
||||
image: nsqio/nsq
|
||||
command: /nsqlookupd
|
||||
nsqlookupd02:
|
||||
image: nsqio/nsq
|
||||
command: /nsqlookupd
|
||||
nsqlookupd03:
|
||||
image: nsqio/nsq
|
||||
command: /nsqlookupd
|
||||
nsqd:
|
||||
image: nsqio/nsq
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- nsqd --data-path=/data --lookupd-tcp-address=nsqlookupd01:4160 --lookupd-tcp-address=nsqlookupd02:4160 --lookupd-tcp-address=nsqlookupd03:4160 -broadcast-address=$$HOSTNAME
|
||||
labels:
|
||||
io.rancher.scheduler.affinity:host_label_soft: nsqd=true
|
||||
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
||||
io.rancher.sidekicks: data
|
||||
io.rancher.container.hostname_override: container_name
|
||||
volumes_from:
|
||||
- data
|
||||
nsqadmin:
|
||||
image: nsqio/nsq
|
||||
command: /nsqadmin --lookupd-http-address=nsqlookupd01:4161 --lookupd-http-address=nsqlookupd02:4161 --lookupd-http-address=nsqlookupd03:4161
|
||||
nsq-lb:
|
||||
image: rancher/lb-service-haproxy:v0.7.9
|
||||
ports:
|
||||
- 4150:4150/tcp
|
||||
- 4151:4151/tcp
|
||||
- 4171:4171/tcp
|
||||
labels:
|
||||
io.rancher.container.agent.role: environmentAdmin
|
||||
io.rancher.container.create_agent: 'true'
|
||||
io.rancher.scheduler.global: 'true'
|
||||
data:
|
||||
image: busybox
|
||||
command: /bin/true
|
||||
net: none
|
||||
volumes:
|
||||
- /data
|
||||
labels:
|
||||
io.rancher.container.start_once: 'true'
|
Loading…
x
Reference in New Issue
Block a user