2023-09-13 18:03:24 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Redis with Docker for Authentik
|
|
|
|
After=docker.service
|
|
|
|
Requires=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStartPre=-/usr/bin/docker rm --force {{ container_names.authentik.redis }}
|
2023-09-15 21:22:16 +02:00
|
|
|
ExecStart=/usr/bin/docker run --rm --name {{ container_names.authentik.redis }} \
|
|
|
|
--network authentik_net --expose 6379 \
|
2023-09-13 18:03:24 +02:00
|
|
|
-v {{ docker_volumes_dir }}/authentik/redis:/data \
|
|
|
|
docker.io/library/redis:alpine --save 60 1 --loglevel warning
|
2023-09-15 21:44:43 +02:00
|
|
|
ExecStop=-/usr/bin/docker stop {{ container_names.authentik.redis }}
|
2023-09-13 18:03:24 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=15s
|
|
|
|
Type=exec
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|