coreos-home-server/service/redis/quadlet/redis.container
Alex Palaistras fcf9175060 Enable Podman auto-updates for Redis and MariaDB
Container auto-updates are scheduled for 30 minutes past every hour, or
approximately 30 minutes after `coreos-home-server-update` runs, in
order to give enough time for container builds to complete; only
containers with auto-updates enabled are eligible, however.

This also enables health-checks for Redis, and updates the version to
7.2.
2023-10-29 13:31:27 +00:00

20 lines
405 B
Plaintext

[Unit]
Description=Redis Key-Value Store
Wants=container-build@%N.service container-volume@%N.service
After=container-build@%N.service container-volume@%N.service
[Container]
AutoUpdate=local
ContainerName=%N
HealthCmd=sh -c 'redis-cli PING | grep -q PONG'
Image=localhost/%N:latest
Network=internal
Notify=true
Volume=%N:/var/lib/%N:z
[Service]
Restart=on-failure
[Install]
WantedBy=multi-user.target