Created
March 27, 2015 14:54
-
-
Save ca0abinary/fbcda67347c5f4759e90 to your computer and use it in GitHub Desktop.
CoreOS (Mesos + Marathon + Zookeeper)
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
[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