Skip to content

Instantly share code, notes, and snippets.

@gregory90
Created November 11, 2015 16:46
Show Gist options
  • Save gregory90/421ccf59294184694410 to your computer and use it in GitHub Desktop.
Save gregory90/421ccf59294184694410 to your computer and use it in GitHub Desktop.
zk:
image: bobrik/zookeeper
ports:
- 2181:2181
environment:
ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181
ZK_ID: 1
master:
image: mesosphere/mesos-master:0.25.0-0.2.70.ubuntu1404
net: host
environment:
MESOS_ZK: zk://127.0.0.1:2181/mesos
MESOS_QUORUM: 1
MESOS_CLUSTER: docker-compose
MESOS_WORK_DIR: /var/lib/mesos
slave-one:
image: mesosphere/mesos-slave:0.25.0-0.2.70.ubuntu1404
net: host
pid: host
environment:
MESOS_MASTER: zk://127.0.0.1:2181/mesos
MESOS_CONTAINERIZERS: docker,mesos
MESOS_HOSTNAME: 192.168.99.100
MESOS_PORT: 5051
MESOS_RESOURCES: ports(*):[11000-11999]
MESOS_DOCKER_MESOS_IMAGE: mesosphere/mesos-slave:0.25.0-0.2.70.ubuntu1404
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /usr/local/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
- /data/slave-one:/tmp/mesos
slave-two:
image: mesosphere/mesos-slave:0.25.0-0.2.70.ubuntu1404
net: host
pid: host
environment:
MESOS_MASTER: zk://127.0.0.1:2181/mesos
MESOS_CONTAINERIZERS: docker,mesos
MESOS_HOSTNAME: 192.168.99.100
MESOS_PORT: 5052
MESOS_RESOURCES: ports(*):[12000-12999]
MESOS_DOCKER_MESOS_IMAGE: mesosphere/mesos-slave:0.25.0-0.2.70.ubuntu1404
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /usr/local/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
- /data/slave-two:/tmp/mesos
marathon:
image: mesosphere/marathon:v0.11.0
net: host
environment:
MARATHON_MASTER: zk://127.0.0.1:2181/mesos
MARATHON_DECLINE_OFFER_DURATION: 3600000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment