21 lines
755 B
Text
21 lines
755 B
Text
|
[Unit]
|
||
|
Description=Pretix with Docker
|
||
|
After=docker.service
|
||
|
Requires=docker.service
|
||
|
Requires={{ pretix_db_container_name }}
|
||
|
Requires={{ pretix_redis_container_name }}
|
||
|
|
||
|
[Service]
|
||
|
ExecStartPre=-/usr/bin/docker rm --force {{ pretix_container_name }}
|
||
|
ExecStart=/usr/bin/docker run --rm --name {{ pretix_container_name }} --network pretix \
|
||
|
--label com.centurylinklabs.watchtower.enable={WATCHTOWER_ENABLED} --env-file {{ docker_volumes_dir }}/pretix/pretix.env \
|
||
|
-v {{ docker_volumes_dir }}/pretix/data:/data \
|
||
|
-v {{ docker_volumes_dir }}/pretix/conf:/etc/pretix \
|
||
|
pretix/standalone:stable
|
||
|
ExecStop=/usr/bin/docker stop {{ watchtower_container_name }}
|
||
|
Restart=always
|
||
|
RestartSec=15s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|