2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Postfix SMTP server
|
2021-06-27 11:52:47 +00:00
|
|
|
Wants=container-build@%N.service dovecot.service
|
|
|
|
After=container-build@%N.service dovecot.service
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=always
|
2021-06-27 11:52:47 +00:00
|
|
|
ExecStart=/bin/podman run --replace --pull never --name %N --net internal \
|
|
|
|
--env-file /etc/container-service/%N/%N.env \
|
2021-03-27 23:03:56 +00:00
|
|
|
--publish 25:25 --publish 465:465 --publish 587:587 \
|
2021-06-27 11:52:47 +00:00
|
|
|
--volume dovecot:/var/mail:z \
|
|
|
|
--volume letsencrypt:/etc/ssl/private:z \
|
|
|
|
localhost/%N:latest
|
2021-01-13 16:36:50 +00:00
|
|
|
ExecStop=/bin/podman stop --time 10 %N
|
2021-03-27 23:03:56 +00:00
|
|
|
ExecStopPost=/bin/podman rm --force %N
|
2021-07-24 14:55:37 +00:00
|
|
|
ExecReload=/bin/podman exec %N %N reload
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|