2023-09-04 14:45:09 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Redis for Pretix with Docker
|
|
|
|
After=docker.service
|
|
|
|
Requires=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStartPre=-/usr/bin/docker rm --force {{ pretix_redis_container_name }}
|
2023-12-01 23:09:29 +01:00
|
|
|
ExecStart=/usr/bin/docker run --name {{ pretix_redis_container_name }} --network pretix --label com.centurylinklabs.watchtower.enable=false redis
|
2023-09-04 14:45:09 +02:00
|
|
|
ExecStop=/usr/bin/docker stop {{ pretix_redis_container_name }}
|
|
|
|
Restart=always
|
|
|
|
RestartSec=15s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|