sanic/sanic.container

30 lines
553 B
Plaintext

[Unit]
Description=sanic - chaos music control
[Container]
AddCapability=CAP_NET_BIND_SERVICE
AutoUpdate=registry
ContainerName=sanic
Group=sanic
HealthCmd=/usr/bin/curl localhost:443/echo
HealthInterval=2m
HealthOnFailure=restart
HealthRetries=5
HealthStartPeriod=1m
Image=registry.gitlab.com/xengi/sanic/sanic:latest
LogDriver=journald
Network=host
NoNewPrivileges=true
PublishPort=443
Pull=always
User=sanic
Volume=/etc/sanic/config.ini:/config.ini
[Service}
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=multi-user.target default.target