forked from coturn/coturn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-mysql.yml
64 lines (60 loc) · 1.17 KB
/
docker-compose-mysql.yml
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
version: "3"
services:
# MySQL mariadb
mysql:
build:
context: ./mysql
restart: unless-stopped
volumes:
- mysql-data:/var/lib/mysql/data
env_file:
- mysql/mysql.env
networks:
- backend
# coTURN
coturn:
build:
context: ./coturn
restart: always
volumes:
- ${PWD}/coturn/turnserver.conf:/etc/turnserver.conf
- ${PWD}/coturn/privkey.pem:/etc/ssl/private/privkey.pem
- ${PWD}/coturn/cert.pem:/etc/ssl/certs/cert.pem
ports:
## STUN/TURN
- "3478:3478"
- "3478:3478/udp"
- "3479:3479"
- "3479:3479/udp"
- "80:80"
- "80:80/udp"
## STUN/TURN SSL
- "5349:5349"
- "5349:5349/udp"
- "5350:5350"
- "5350:5350/udp"
- "443:443"
- "443:443/udp"
# Relay Ports
# - "49152-65535:49152-65535"
# - "49152-65535:49152-65535/udp"
networks:
- frontend
- backend
depends_on:
- mysql
env_file:
- coturn/coturn.env
# DB
- mysql/mysql.env
volumes:
mysql-data:
networks:
frontend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.238.0/24
backend:
internal: true