2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Dovecot POP3/IMAP server
|
2021-06-27 11:52:47 +00:00
|
|
|
Wants=container-build@%N.service mariadb.service rspamd.service
|
|
|
|
After=container-build@%N.service mariadb.service rspamd.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
|
|
|
--env-file /etc/container-service/rspamd/rspamd.env \
|
|
|
|
--publish 143:143 --publish 993:993 \
|
2021-06-27 11:52:47 +00:00
|
|
|
--volume %N:/var/mail:z \
|
|
|
|
--volume letsencrypt:/etc/ssl/private:z \
|
2021-03-27 23:03:56 +00:00
|
|
|
--volume /etc/container-service/%N/service/config:/etc/%N/conf.d:z \
|
2021-06-27 11:52:47 +00:00
|
|
|
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-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|