-
-
Save robszumski/1cbb52dec09b896ca63f to your computer and use it in GitHub Desktop.
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=etcd 0.5 alpha | |
After=docker.service | |
[Service] | |
EnvironmentFile=/etc/environment | |
TimeoutStartSec=0 | |
ExecStartPre=-/usr/bin/docker kill etcd | |
ExecStartPre=-/usr/bin/docker rm etcd | |
ExecStartPre=/usr/bin/docker pull quay.io/coreos/etcd:v0.5.0_alpha.4 | |
ExecStart=/bin/bash -c "/usr/bin/docker run \ | |
-p 2379:2379 \ | |
-p 2380:2380 \ | |
--name etcd \ | |
-v /etc/ssl/certs/:/etc/ssl/certs/ \ | |
quay.io/coreos/etcd:v0.5.0_alpha.4 \ | |
-name %m \ | |
-listen-client-urls http://0.0.0.0:2380 \ | |
-advertise-client-urls http://$COREOS_PRIVATE_IPV4:2380 \ | |
-listen-peer-urls http://0.0.0.0:2379 \ | |
-initial-advertise-peer-urls http://$COREOS_PRIVATE_IPV4:2379 \ | |
-discovery http://discovery.etcd.io/<token>" | |
ExecStop=/usr/bin/docker kill etcd | |
[X-Fleet] | |
Conflicts=etcd* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment