compose-website/unit-files/haproxy-confd.service

22 lines
488 B
SYSTEMD
Raw Normal View History

2014-10-27 11:40:36 +00:00
[Unit]
Description=%p
After=docker.service
Requires=docker.service
[Service]
Restart=always
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill %p
ExecStartPre=-/usr/bin/docker rm %p
ExecStart=/usr/bin/docker run\
--name %p\
-v /data/server-wide/haproxy/:/etc/haproxy/\
-v /data/indiehosters/confd/:/etc/confd/\
-v /var/run/docker.sock:/var/run/docker.sock\
indiehosters/confd
ExecReload=/usr/bin/docker restart %p
ExecStop=/usr/bin/docker stop %p
[Install]
WantedBy=multi-user.target