-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-cascaded-sfus.yaml
105 lines (100 loc) · 2.49 KB
/
docker-compose-cascaded-sfus.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
services:
notebooks:
restart: always
build:
context: ./my-notebooks
dockerfile: Dockerfile
ports:
- 8888:8888
volumes:
- ./my-notebooks:/home/jovyan/work
observer:
restart: always
image: observertc/observer:1.0.0-beta
ports:
- 7080:7080
environment:
- MICRONAUT_CONFIG_FILES=/my-config.yaml
volumes:
- ./observer-config/config.yaml:/my-config.yaml
mongodb:
image: mongo:4.2
hostname: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
restart: always
mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: password
restart: always
depends_on:
- mongodb
mediasoup_sfu_1:
build:
context: ./mediasoup-sfu
dockerfile: Dockerfile
cap_add:
- NET_ADMIN
ports:
- 15000-15100:15000-15100/udp
- 5959:5959
environment:
- HOSTNAME=localhost
- RTCMIN_PORT=15000
- RTCMAX_PORT=15100
- WEBSOCKET_PORT=5959
- SERVER_IP=0.0.0.0
- OUTBOUND_LATENCY_IN_MS=400
- ANNOUNCED_IP=${SFU_ANNOUNCED_IP}
- OBSERVER_INTERNAL_ADDRESS=host.docker.internal:7080
- SFUPEER_MIN_PORT=6000
- SFUPEER_MAX_PORT=6005
- SFUPEER_LISTENING_HOST=mediasoup_sfu_1
- [email protected]:7171
depends_on:
- observer
mediasoup_sfu_2:
build:
context: ./mediasoup-sfu
dockerfile: Dockerfile
cap_add:
- NET_ADMIN
ports:
- 15200-15300:15200-15300/udp
- 7171:7171
environment:
- HOSTNAME=localhost
- RTCMIN_PORT=15200
- RTCMAX_PORT=15300
- WEBSOCKET_PORT=7171
- SERVER_IP=0.0.0.0
- OUTBOUND_LATENCY_IN_MS=400
- ANNOUNCED_IP=${SFU_ANNOUNCED_IP}
- OBSERVER_INTERNAL_ADDRESS=host.docker.internal:7080
- SFUPEER_MIN_PORT=6010
- SFUPEER_MAX_PORT=6015
- SFUPEER_LISTENING_HOST=mediasoup_sfu_2
- [email protected]:5959
depends_on:
- observer
webrtc-app:
build:
context: ./my-webrtc-app
dockerfile: Dockerfile
environment:
- SAMPLING_PERIOD_IN_MS=10000
ports:
- 9000:9000
depends_on:
- observer
version: '3.3'