Last active
December 14, 2015 01:35
-
-
Save dreampuf/287a06848d0870cc8449 to your computer and use it in GitHub Desktop.
Marathon single compose yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Zookeeper: -p 2181:2181 -p 2888:2888 -p 3888:3888 | |
zookeeper: | |
image: jplock/zookeeper | |
ports: | |
- "2181" | |
- "2888" | |
- "3888" | |
master: | |
image: mesosphere/mesos-master:0.25.0-0.2.70.ubuntu1404 | |
hostname: master | |
links: | |
- zookeeper:zookeeper | |
environment: | |
- MESOS_ZK=zk://zookeeper:2181/mesos | |
- MESOS_QUORUM=1 | |
- MESOS_WORK_DIR=/var/lib/mesos | |
- MESOS_LOG_DIR=/var/log | |
ports: | |
- "5050:5050" | |
marathon: | |
image: mesosphere/marathon | |
links: | |
- zookeeper:zookeeper | |
ports: | |
- "8080:8080" | |
# this image does not respect MARATHON_ env variables, so adding the params via command | |
command: --master zk://zookeeper:2181/mesos --zk zk://zookeeper:2181/marathon | |
slave: | |
image: mesosphere/mesos-slave:0.25.0-0.2.70.ubuntu1404 | |
links: | |
- zookeeper:zookeeper | |
- master:master | |
environment: | |
- MESOS_MASTER=zk://zookeeper:2181/mesos | |
- MESOS_EXECUTOR_REGISTRATION_TIMEOUT=5mins | |
- MESOS_CONTAINERIZERS=docker,mesos | |
- MESOS_ISOLATOR=cgroups/cpu,cgroups/mem | |
- MESOS_LOG_DIR=/var/log | |
volumes: | |
- /var/run/docker.sock:/run/docker.sock | |
- /usr/local/bin/docker:/usr/bin/docker | |
- /sys:/sys:ro | |
- mesosslace-stuff:/var/log | |
expose: | |
- "5051" | |
#jenkins: | |
# image: containersol/jenkins_with_docker | |
# links: | |
# - marathon:marathon | |
# volumes: | |
# - jenkins-stuff:/var/jenkins_home | |
# - .:/var/jenkins_data | |
# - /var/run/docker.sock:/var/run/docker.sock | |
# - /usr/local/bin/docker:/usr/bin/docker | |
# ports: | |
# - "8081:8080" | |
registry: | |
image: registry | |
environment: | |
- STORAGE_PATH=/registry | |
volumes: | |
- registry-stuff:/registry | |
ports: | |
- "5000:5000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment