2023-08-11 19:40:59 +00:00
|
|
|
[Unit]
|
|
|
|
Description=RSpamd Spam Filtering System
|
|
|
|
Wants=container-build@%N.service container-volume@%N.service redis.service
|
|
|
|
After=container-build@%N.service container-volume@%N.service redis.service
|
|
|
|
|
|
|
|
[Container]
|
2023-11-17 13:38:34 +00:00
|
|
|
AutoUpdate=local
|
2023-08-11 19:40:59 +00:00
|
|
|
ContainerName=%N
|
|
|
|
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
2023-11-17 13:38:34 +00:00
|
|
|
HealthCmd=sh -c 'rspamadm control stat > /dev/null || exit 1'
|
2023-08-11 19:40:59 +00:00
|
|
|
Image=localhost/%N:latest
|
|
|
|
Network=internal
|
2023-11-17 13:38:34 +00:00
|
|
|
PodmanArgs=--sdnotify=healthy
|
2023-08-11 19:40:59 +00:00
|
|
|
Volume=%N:/var/lib/%N:z
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|