-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.55 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
coturn:
image:
repository: coturn/coturn
tag: "4.6"
#command: ["turnserver", "--log-file=stdout"]
restart: always
volumes:
- ./CoTurn/conf/turnserver.conf:/etc/turnserver.conf
# ports: => This range of ports is too wide to be handled by a Docker Container (thats why network_mode is set to host)
# - "3478:3478"
# - "3478:3478/udp"
# - "3479:3479"
# - "3479:3479/udp"
# - "80:80"
# - "80:80/udp"
# #RELAY
# - "49152-65535:49152-65535"
# - "49152-65535:49152-65535/udp"
network_mode: "host"
mysql:
image: mariadb
restart: unless-stopped
ports:
- "3306:3306"
volumes:
- ./MySQL/init_coturn_db.sql:/docker-entrypoint-initdb.d/init_coturn_db.sql:ro
- ./MySQL/coturn_schema.sql:/docker-entrypoint-initdb.d/coturn_schema.sql:ro
- mysql-data:/var/lib/mysql/data
env_file:
- ./MySQL/mysql.env
# networks:
# - rtc_backend
peer:
image: ubuntu:20.04
# networks:
# - rtc_backend
tty: true
stdin_open: true
environment:
- DEBIAN_FRONTEND=noninteractive
# - MYSQL_ROOT_PASSWORD=
# for ubuntu:20.04, without for mysql
command: /bin/bash -c "apt update -y && apt upgrade -y && apt install -y iproute2 net-tools iputils-ping sudo coturn && sleep infinity"
volumes:
mysql-data:
networks:
rtc_backend:
driver: bridge
ipam:
config:
- subnet: 192.168.0.0/16
ip_range: 192.168.0.0/24