coreos-home-server/service/mariadb/quadlet/mariadb.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

21 lines
466 B
Plaintext

[Unit]
Description=MariaDB SQL Database
Wants=container-build@%N.service container-volume@%N.service
After=container-build@%N.service container-volume@%N.service
[Container]
AutoUpdate=local
ContainerName=%N
EnvironmentFile=%E/coreos-home-server/%N/%N.env
HealthCmd=mariadb-admin -uroot -p$MYSQL_ROOT_PASSWORD ping
Image=localhost/%N:latest
Network=internal
Notify=true
Volume=%N:/var/lib/mysql:z
[Service]
Restart=on-failure
[Install]
WantedBy=multi-user.target