compose-website/unit-files/haproxy.service
2014-10-27 12:32:21 +00:00

25 lines
476 B
Desktop File

[Unit]
Description=%p
# Requirements
Requires=docker.service
# Dependency ordering
After=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 \
-p 80:80 \
-p 443:443 \
indiehosters/haproxy
ExecReload=/usr/bin/docker restart %p
ExecStop=/usr/bin/docker stop %p
[Install]
WantedBy=multi-user.target