mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 05:30:45 +00:00
Alex Palaistras
fcf9175060
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.
20 lines
405 B
Plaintext
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
|