2023-08-13 15:30:55 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Dovecot POP3/IMAP server
|
|
|
|
Wants=container-build@%N.service container-volume@%N.service mariadb.service rspamd.service grafana-dashboard@dovecot.service
|
|
|
|
After=container-build@%N.service container-volume@%N.service mariadb.service rspamd.service
|
|
|
|
Before=grafana-dashboard@dovecot.service
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
AddCapability=SYS_CHROOT
|
|
|
|
ContainerName=%N
|
|
|
|
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
|
|
|
EnvironmentFile=%E/coreos-home-server/rspamd/rspamd.env
|
2023-10-29 16:22:26 +00:00
|
|
|
HealthCmd=sh -c 'echo PING | nc -q 1 localhost 5001 | grep -q PONG'
|
2023-08-13 15:30:55 +00:00
|
|
|
Image=localhost/%N:latest
|
|
|
|
Network=internal
|
2023-10-29 16:22:26 +00:00
|
|
|
PodmanArgs=--sdnotify=healthy
|
2023-08-13 15:30:55 +00:00
|
|
|
PublishPort=143:143
|
|
|
|
PublishPort=993:993
|
|
|
|
PublishPort=4190:4190
|
|
|
|
Volume=%N:/var/mail:z
|
|
|
|
Volume=letsencrypt:/etc/ssl/private:z,ro
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecReload=/bin/podman exec %N doveadm -v reload
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|