2016-11-28 13:09:29 -07:00

50 lines
1.4 KiB
YAML

zookeeper:
image: rancher/zookeeper:3.4.8
environment:
ZK_ENSEMBLE_SIZE: ${ZOOKEEPER_SCALE}
JVMFLAGS: ${ZOOKEEPER_JVM_FLAGS}
CONFD_INTERVAL: 0
labels:
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.sidekicks: zookeeper-data
volumes_from:
- zookeeper-data
zookeeper-data:
image: busybox
entrypoint: /bin/true
labels:
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.container.start_once: 'true'
net: none
volumes:
- /data
mesos-master:
image: rancher/mesos-master:latest
environment:
MESOS_CLUSTER: Rancher
MESOS_QUORUM: 2
MASTER_PORT: 5050
ZK_SERVICE: mesos/zookeeper
ZK_SESSION_TIMEOUT: 10secs
ports:
- "5050:5050"
labels:
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
volumes:
- /data
mesos-slave:
image: rancher/mesos-slave:latest
environment:
SLAVE_PORT: 5051
ZK_SERVICE: mesos/zookeeper
ports:
- "5051:5051"
labels:
io.rancher.container.hostname_override: container_name
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
io.rancher.scheduler.global: "true"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /data
privileged: true