Skip to content

Instantly share code, notes, and snippets.

@ashwanthkumar
Created February 23, 2016 16:50
Show Gist options
  • Save ashwanthkumar/642a50a794805a5f9bb6 to your computer and use it in GitHub Desktop.
Save ashwanthkumar/642a50a794805a5f9bb6 to your computer and use it in GitHub Desktop.
Docker compose setup to bring up a local marathon setup for testing / development
version: '2'
services:
zk:
image: jplock/zookeeper
network_mode: "host"
master:
image: mesosphere/mesos-master:0.27.0-0.2.190.ubuntu1404
network_mode: "host"
privileged: true
depends_on:
- zk
slave:
image: mesosphere/mesos-slave:0.27.0-0.2.190.ubuntu1404
network_mode: "host"
privileged: true
environment:
MESOS_MASTER: 127.0.0.1:5050
depends_on:
- master
marathon:
image: mesosphere/marathon:v0.15.2
network_mode: "host"
ports:
# If you're running things on Mac (boot2docker) and has setup port forwarding for all 40000-49999 ports on host machine
- "8080:48080"
- "8080:8080"
environment:
MARATHON_MASTER: 127.0.0.1:5050
depends_on:
- master
- slave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment