2014-09-26 12:57:09 +00:00
|
|
|
[Unit]
|
|
|
|
Description=%p
|
2014-10-27 12:32:21 +00:00
|
|
|
|
|
|
|
# Requirements
|
2014-09-26 12:57:09 +00:00
|
|
|
Requires=docker.service
|
|
|
|
|
2014-10-27 12:32:21 +00:00
|
|
|
# Dependency ordering
|
|
|
|
After=docker.service
|
2015-02-16 16:33:03 +00:00
|
|
|
After=rsyslog.service
|
2014-10-27 12:32:21 +00:00
|
|
|
|
2014-09-26 12:57:09 +00:00
|
|
|
[Service]
|
|
|
|
Restart=always
|
2015-01-15 16:37:11 +00:00
|
|
|
RestartSec=20
|
2015-01-16 10:01:44 +00:00
|
|
|
TimeoutStartSec=0
|
2014-10-10 16:27:13 +00:00
|
|
|
ExecStartPre=-/usr/bin/docker kill %p
|
|
|
|
ExecStartPre=-/usr/bin/docker rm %p
|
2014-10-27 12:32:21 +00:00
|
|
|
ExecStart=/usr/bin/docker run \
|
2015-01-14 13:48:24 +00:00
|
|
|
--rm \
|
2014-10-27 12:32:21 +00:00
|
|
|
--name %p \
|
2015-02-16 16:33:03 +00:00
|
|
|
-v /data/runtime/dev/log:/dev/log \
|
2014-11-04 18:07:18 +00:00
|
|
|
-v /data/runtime/haproxy:/etc/haproxy \
|
2014-10-27 12:32:21 +00:00
|
|
|
-p 80:80 \
|
|
|
|
-p 443:443 \
|
2015-01-05 16:35:46 +00:00
|
|
|
pierreozoux/haproxy
|
2014-09-26 12:57:09 +00:00
|
|
|
ExecReload=/usr/bin/docker restart %p
|
2014-10-10 16:27:13 +00:00
|
|
|
ExecStop=/usr/bin/docker stop %p
|
2014-09-26 12:57:09 +00:00
|
|
|
|