27 lines
517 B
Desktop File
27 lines
517 B
Desktop File
[Unit]
|
|
Description=%p
|
|
|
|
# Requirements
|
|
Requires=docker.service
|
|
|
|
# Dependency ordering
|
|
After=docker.service
|
|
After=rsyslog.service
|
|
|
|
[Service]
|
|
Restart=always
|
|
RestartSec=20
|
|
TimeoutStartSec=0
|
|
ExecStartPre=-/usr/bin/docker kill %p
|
|
ExecStartPre=-/usr/bin/docker rm %p
|
|
ExecStart=/usr/bin/docker run \
|
|
--rm \
|
|
--name %p \
|
|
-v /data/runtime/dev/log:/dev/log \
|
|
-v /data/runtime/haproxy:/etc/haproxy \
|
|
-p 80:80 \
|
|
-p 443:443 \
|
|
pierreozoux/haproxy
|
|
ExecReload=/usr/bin/docker restart %p
|
|
ExecStop=/usr/bin/docker stop %p
|
|
|