role-paperless-ngx/templates/paperless-ngx-redis.quadlet.j2
2023-09-20 21:47:16 +02:00

31 lines
643 B
Django/Jinja

[Unit]
Description=Paperless-ngx Redis
[Container]
ContainerName=paperless-ngx-redis
Image=docker.io/library/redis:{{ paperless_ngx_redis_version }}
Network=paperless.network
Volume=/var/paperless-ngx/redis:/data:rw
NoNewPrivileges=true
DropCapability=All
AddCapability=net_bind_service
#UserNS=keep-id
# Required to access the Podman Socket
#SecurityLabelDisable=true
PodmanArgs=--userns=keep-id --security-opt label=disable
[Service]
Restart=on-failure
# Restart Delay
RestartSec=30
# Allowed time for the service to start.
TimeoutStartSec=90
# Allowed time for the service to stop.
TimeoutStopSec=90
[Install]
WantedBy=default.target