2015-09-21 16:05:56 +00:00
|
|
|
zk:
|
|
|
|
image: bobrik/zookeeper
|
|
|
|
net: host
|
|
|
|
environment:
|
|
|
|
ZK_CONFIG: tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181
|
|
|
|
ZK_ID: 1
|
|
|
|
|
|
|
|
master:
|
2016-04-15 16:59:51 +00:00
|
|
|
image: mesosphere/mesos-master:0.28.1-2.0.20.ubuntu1404
|
2015-09-21 16:05:56 +00:00
|
|
|
net: host
|
|
|
|
environment:
|
|
|
|
MESOS_ZK: zk://127.0.0.1:2181/mesos
|
|
|
|
MESOS_HOSTNAME: 127.0.0.1
|
|
|
|
MESOS_IP: 127.0.0.1
|
|
|
|
MESOS_QUORUM: 1
|
|
|
|
MESOS_CLUSTER: docker-compose
|
|
|
|
MESOS_WORK_DIR: /var/lib/mesos
|
|
|
|
|
|
|
|
slave:
|
2016-04-15 16:59:51 +00:00
|
|
|
image: mesosphere/mesos-slave:0.28.1-2.0.20.ubuntu1404
|
2015-09-21 16:05:56 +00:00
|
|
|
net: host
|
|
|
|
pid: host
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
MESOS_MASTER: zk://127.0.0.1:2181/mesos
|
|
|
|
MESOS_HOSTNAME: 127.0.0.1
|
|
|
|
MESOS_IP: 127.0.0.1
|
|
|
|
MESOS_CONTAINERIZERS: docker,mesos
|
|
|
|
volumes:
|
|
|
|
- /sys/fs/cgroup:/sys/fs/cgroup
|
|
|
|
- /usr/bin/docker:/usr/bin/docker:ro
|
|
|
|
- /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1:ro
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2016-02-12 13:45:36 +00:00
|
|
|
- /lib/x86_64-linux-gnu/libsystemd-journal.so.0:/lib/x86_64-linux-gnu/libsystemd-journal.so.0
|
2015-09-21 16:05:56 +00:00
|
|
|
|
|
|
|
marathon:
|
2016-04-15 16:59:51 +00:00
|
|
|
image: mesosphere/marathon:v1.1.1
|
2015-09-21 16:05:56 +00:00
|
|
|
net: host
|
|
|
|
environment:
|
|
|
|
MARATHON_MASTER: zk://127.0.0.1:2181/mesos
|
|
|
|
MARATHON_ZK: zk://127.0.0.1:2181/marathon
|
|
|
|
MARATHON_HOSTNAME: 127.0.0.1
|
|
|
|
command: --event_subscriber http_callback
|
2016-04-15 16:59:51 +00:00
|
|
|
|
|
|
|
traefik:
|
|
|
|
image: traefik
|
|
|
|
command: -c /dev/null --web --logLevel=DEBUG --marathon --marathon.domain marathon.localhost --marathon.endpoint http://172.17.0.1:8080 --marathon.watch
|
|
|
|
ports:
|
|
|
|
- "8000:80"
|
|
|
|
- "8081:8080"
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|