28 lines
694 B
Plaintext
28 lines
694 B
Plaintext
[Unit]
|
|
Description=Redis container
|
|
After=unbound-redis-socket.container
|
|
Requires=unbound-redis-socket.container
|
|
|
|
[Container]
|
|
AutoUpdate=registry
|
|
Command=CMD redis-server /usr/local/etc/redis/redis.conf
|
|
ContainerName=unbound-redis
|
|
Environment=TZ=Europe/Zurich
|
|
HealthCheck=CMD /bin/bash -c '[[ -S /usr/local/unbound/cachedb.d/redis.sock ]]'
|
|
HealthInterval=30s
|
|
HealthTimeout=10s
|
|
HealthRetries=5
|
|
Image=docker.io/redis:alpine
|
|
Pod=pihole.pod
|
|
StartWithPod=true
|
|
Timezone=Europe/Zurich
|
|
Volume=unbound-redis-data.volume:/data
|
|
Volume=unbound-redis-conf.volume:/usr/local/etc/redis
|
|
Volume=unbound-redis-cache.volume:/usr/local/unbound/cachedb.d
|
|
|
|
[Service]
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=default.target
|