26 lines
721 B
Text
26 lines
721 B
Text
[Unit]
|
|
Description=coturn for matrix
|
|
|
|
PartOf=matrix.target
|
|
|
|
[Container]
|
|
ContainerName=matrix-coturn
|
|
|
|
Environment=TURN_CERT_PATH=/etc/coturn/fullchain.pem TURN_KEY_PATH=/etc/coturn/privkey.pem
|
|
|
|
Image=coturn/coturn:latest
|
|
PublishPort=3478:3478/udp
|
|
PublishPort=3478:3478/tcp
|
|
PublishPort=5349:5349/tcp
|
|
PublishPort=0.0.0.0:49152-49999:49152-49999/udp
|
|
|
|
Volume=%h/services/matrix/synapse/turnserver.conf:/etc/coturn/turnserver.conf:ro
|
|
Volume=%h/services/matrix/synapse/homeserver.log:/homeserver.log
|
|
Volume=/etc/letsencrypt/live/{YOURDOMAIN.COM}/fullchain.pem:/etc/coturn/fullchain.pem
|
|
Volume=/etc/letsencrypt/live/{YOURDOMAIN.COM}/privkey.pem:/etc/coturn/privkey.pem
|
|
|
|
[Service]
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=matrix.target
|