mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
28 lines
845 B
Plaintext
28 lines
845 B
Plaintext
[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
|
|
HealthCmd=sh -c 'echo PING | nc -q 1 localhost 5001 | grep -q PONG'
|
|
Image=localhost/%N:latest
|
|
Network=internal
|
|
PodmanArgs=--sdnotify=healthy
|
|
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
|