compose-website/unit-files/postfix.service

24 lines
443 B
SYSTEMD
Raw Normal View History

[Unit]
Description=%p
2014-10-27 12:32:21 +00:00
# Requirements
Requires=docker.service
2014-10-27 12:32:21 +00:00
# Dependency ordering
After=docker.service
[Service]
Restart=always
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 \
--name %p \
2014-11-04 18:07:18 +00:00
-v /data/runtime/postfix/:/data \
2014-10-27 12:32:21 +00:00
-p 25:25 \
indiehosters/postfix-forwarder
ExecReload=/usr/bin/docker restart %p
ExecStop=/usr/bin/docker stop %p
[Install]
WantedBy=multi-user.target