-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.03 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
28
29
30
31
32
33
34
35
36
37
38
services:
live:
build: .
image: live-webrtc-go:latest
restart: unless-stopped
environment:
- HTTP_ADDR=:8080
- ALLOWED_ORIGIN=*
- RECORD_ENABLED=1
- RECORD_DIR=/records
- STUN_URLS=stun:stun.l.google.com:19302
# 若启用 TURN,请设置以下两项并确保 coturn 配置一致
# - TURN_URLS=turn:coturn:3478?transport=udp
# - TURN_USERNAME=user
# - TURN_PASSWORD=pass
ports:
- "8080:8080"
volumes:
- ./records:/records
# depends_on:
# - coturn
# 示例 TURN 服务(可选)。生产请根据安全需求配置。
# coturn:
# image: instrumentisto/coturn
# restart: unless-stopped
# command: [
# "--no-cli", "--no-tls", "--no-dtls",
# "--listening-port", "3478",
# "--min-port", "49152", "--max-port", "49252",
# "--lt-cred-mech",
# "--user", "user:pass",
# "--realm", "localhost"
# ]
# ports:
# - "3478:3478/udp"
# - "3478:3478/tcp"
# - "49152-49252:49152-49252/udp"