coreos-home-server/config/service/dovecot/systemd/dovecot.service
Alex Palaistras 3254ead3a7 Simplify systemd services, use volumes
This commit represents a large amount of work toward moving services to
a more standard approach to storing data, and a simplification in how
networks are managed.
2021-06-27 18:36:06 +01:00

21 lines
867 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
[Install]
WantedBy=multi-user.target