Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.