mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
31 lines
940 B
Plaintext
31 lines
940 B
Plaintext
[Unit]
|
|
Description=Coturn TURN/STUN server
|
|
Wants=container-build@%N.service container-volume@%N.service
|
|
After=container-build@%N.service container-volume@%N.service
|
|
|
|
[Container]
|
|
AutoUpdate=local
|
|
ContainerName=%N
|
|
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
|
HealthCmd=/run-healthcheck $COTURN_EXTERNAL_IP $COTURN_AUTH_SECRET
|
|
Image=localhost/%N:latest
|
|
PublishPort=3478:3478
|
|
PublishPort=3478:3478/udp
|
|
PublishPort=3479:3479
|
|
PublishPort=3479:3479/udp
|
|
PublishPort=5349:5349
|
|
PublishPort=5349:5349/udp
|
|
PublishPort=5350:5350
|
|
PublishPort=5350:5350/udp
|
|
PodmanArgs=--publish ${COTURN_RELAY_PORT_MIN}-${COTURN_RELAY_PORT_MAX}:${COTURN_RELAY_PORT_MIN}-${COTURN_RELAY_PORT_MAX}/udp --sdnotify=healthy
|
|
Volume=%N:/var/lib/%N:z
|
|
Volume=letsencrypt:/etc/ssl/private:z,ro
|
|
|
|
[Service]
|
|
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
|
ExecReload=/bin/podman exec %N sh -c 'kill -USR2 $(pidof turnserver)'
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|