-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_env.yaml
95 lines (95 loc) · 1.86 KB
/
test_env.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
services:
mysql:
build: ./mysql
image: mysql_db
container_name: mysql
env_file:
- .env
volumes:
- dbdata:/var/lib/mysql
expose:
- "3306/tcp"
networks:
default:
ipv4_address: ${MYSQL_IP}
rtpengine:
build: ./rtpengine
image: docker_rtpengine
container_name: rtpengine
privileged: true
env_file:
- .env
volumes:
- ./rtpengine:/mnt/rtpengine
cap_add:
- NET_ADMIN
environment:
- TABLE=0
- INTERFACE=${RTPENGINE_IP}
- LISTEN_NG=${RTPENGINE_IP}:2223
- PIDFILE=/run/ngcp-rtpengine-daemon.pid
- PORT_MAX=31000
- PORT_MIN=30000
- NO_FALLBACK=no
- TOS=184
expose:
- "2223/udp"
- "30000-31000/udp"
ports:
- "30000-31000:30000-31000/udp"
networks:
default:
ipv4_address: ${RTPENGINE_IP}
haproxy:
build: ./haproxy
image: loadbalancer
container_name: loadbalancer
privileged: true
cap_add:
- NET_ADMIN
env_file:
- .env
volumes:
- ./haproxy:/mnt/haproxy
expose:
- "5060/tcp"
ports:
- "5060/tcp"
networks:
default:
ipv4_address: ${LOADBALANCER_IP}
sip_server:
build: ./wss_server
image: sip_server
container_name: sip_server
depends_on:
- rtpengine
- mysql
privileged: true
env_file:
- .env
volumes:
- ./wss_server:/mnt/wss_server
expose:
- "5060/tcp"
- "5060/udp"
- "80/tcp"
- "443/tcp"
- "8080/tcp"
- "4443/tcp"
ports:
- "5060:5060/tcp"
- "80:80/tcp"
- "443:443/tcp"
- "8080:8080/tcp"
- "4443:4443/tcp"
networks:
default:
ipv4_address: ${WSS_SERVER_IP}
networks:
default:
ipam:
config:
- subnet: ${TEST_NETWORK}
volumes:
dbdata: {}