-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
58 lines (55 loc) · 1.29 KB
/
docker-compose.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
version: "3.7"
services:
etcd:
image: gcr.io/etcd-development/etcd:v3.4.9
entrypoint: "/usr/local/bin/etcd"
command: "--listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://0.0.0.0:2379"
ports:
- 2379:2379
networks:
- ionnet
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
volumes:
- "./cfgs/prometheus.yml:/etc/prometheus/prometheus.yml"
networks:
- ionnet
sfuA:
image: pionwebrtc/ion-cluster:latest
build:
dockerfile: Dockerfile
context: .
command: ["server", "-c", "/configs/sfu.toml", "-a", ":7000"]
volumes:
- "./cfgs/config-docker.toml:/configs/sfu.toml"
environment:
ION_SIGNAL_FQDN: sfuA
ports:
- "5000-5100:5000-5100/udp"
- "7000:7000"
networks:
- ionnet
sfuB:
image: pionwebrtc/ion-cluster:latest
links:
- sfuA
build:
dockerfile: Dockerfile
context: .
command: ["server", "-c", "/configs/sfu.toml", "-a", ":7001"]
volumes:
- "./cfgs/config-docker.toml:/configs/sfu.toml"
environment:
ION_SIGNAL_FQDN: sfuB
ports:
- "5200-5300:5200-5300/udp"
- "7001:7001"
networks:
- ionnet
networks:
ionnet:
external: true
name: ionnet
driver: bridge