compose-website/unit-files/postfix.service
2015-02-17 11:34:12 +00:00

30 lines
589 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/postfix/:/data \
-v /data/runtime/postfix-spool/:/var/spool/postfix \
-p 25:25 \
pierreozoux/postfix
ExecReload=/usr/bin/docker restart %p
ExecStop=/usr/bin/docker stop %p
[Install]
WantedBy=multi-user.target