-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
27 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Docker Compose - Coturn only
# Redis, IPTV worker, and podcast worker run as systemd services (not Docker)
# See: /etc/systemd/system/bittorrented*.service
services:
# Coturn STUN/TURN server for WebRTC NAT traversal
# Required for WebTorrent P2P connections through firewalls/NAT
coturn:
image: coturn/coturn:latest
container_name: bittorrented-coturn
# network_mode: host is required for TURN to work properly
# It needs direct access to the network for UDP relay
network_mode: host
volumes:
- ./coturn/turnserver.conf:/etc/coturn/turnserver.conf:ro
environment:
# These are passed to the config via command line
- TURN_REALM=${TURN_REALM:-bittorrented.com}
- TURN_SECRET=${TURN_SECRET:-change-this-secret-in-production}
- EXTERNAL_IP=${TURN_EXTERNAL_IP:-}
healthcheck:
test: ["CMD", "turnutils_uclient", "-T", "-u", "health", "-w", "health", "127.0.0.1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped