mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
22 lines
916 B
Desktop File
22 lines
916 B
Desktop File
[Unit]
|
|
Description=Dovecot POP3/IMAP server
|
|
Wants=container-build@%N.service mariadb.service rspamd.service
|
|
After=container-build@%N.service mariadb.service rspamd.service
|
|
|
|
[Service]
|
|
Restart=always
|
|
ExecStart=/bin/podman run --replace --pull never --name %N --net internal \
|
|
--env-file /etc/container-service/%N/%N.env \
|
|
--env-file /etc/container-service/rspamd/rspamd.env \
|
|
--publish 143:143 --publish 993:993 \
|
|
--volume %N:/var/mail:z \
|
|
--volume letsencrypt:/etc/ssl/private:z \
|
|
--volume /etc/container-service/%N/service/config:/etc/%N/conf.d:z \
|
|
localhost/%N:latest
|
|
ExecStop=/bin/podman stop --time 10 %N
|
|
ExecStopPost=/bin/podman rm --force %N
|
|
ExecReload=/bin/podman exec %N doveadm -v reload
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|