2016-11-23 22:50:41 -08:00

49 lines
1.3 KiB
YAML

zookeeper:
image: rancher/zookeeper:3.4.8
environment:
ZK_ENSEMBLE_SIZE: 3
JVMFLAGS: -Xmx512m -Xms512m
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.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