Skip to content

Instantly share code, notes, and snippets.

@ca0abinary
Created March 27, 2015 14:54
Show Gist options
  • Save ca0abinary/fbcda67347c5f4759e90 to your computer and use it in GitHub Desktop.
Save ca0abinary/fbcda67347c5f4759e90 to your computer and use it in GitHub Desktop.
CoreOS (Mesos + Marathon + Zookeeper)
[Unit]
Description=Marathon
After=docker.service
Requires=docker.service
[Service]
Restart=on-failure
RestartSec=20
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill marathon
ExecStartPre=-/usr/bin/docker rm marathon
ExecStartPre=/usr/bin/docker pull mesosphere/marathon:v0.7.5
ExecStart=/usr/bin/docker run --name marathon -e LIBPROCESS_PORT=9090 -p 8080:8080 -p 9090:9090 mesosphere/marathon:v0.7.5 --master zk://zookeeper.local:2181/mesos --zk zk://zookeeper.osdev.geniuscentral.com:2181/marathon --checkpoint --task_launch_timeout 300000
ExecStop=/usr/bin/docker stop marathon
[Install]
WantedBy=multi-user.target
[X-Fleet]
Conflicts=marathon@*.service
MachineMetadata=role=services
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment