-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
78 lines (77 loc) · 1.74 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.3'
services:
adminer:
image: adminer
restart: always
ports:
- 8081:8080
db:
image: bitnami/postgresql:12.5.0
environment:
POSTGRESQL_USERNAME: ${PGUSERNAME}
POSTGRESQL_PASSWORD: ${PGPASSWORD}
ports:
- 15432:5432
volumes:
- postgres-vol:/bitnami/postgresql
restart: unless-stopped
rtpproxy1:
build: ./rtpproxy
image: adeshpandey/rtpproxy
ports:
- 10000-10020:10000-10020/udp
environment:
- PUBLIC_IP=${PUBLIC_IP}
- START_PORT=10000
- END_PORT=10020
rtpproxy2:
image: adeshpandey/rtpproxy
ports:
- 10021-10040:10021-10040/udp
environment:
- PUBLIC_IP=${PUBLIC_IP}
- START_PORT=10021
- END_PORT=10040
depends_on:
- rtpproxy1
rtpengine:
build: ./rtpengine
image: adeshpandey/rtpengine
ports:
- 10041-11000:10041-11000/udp
environment:
- PUBLIC_IP=${PUBLIC_IP}
- START_PORT=10021
- END_PORT=11000
depends_on:
- rtpproxy1
kamailio:
build: ./kamailio
restart: unless-stopped
environment:
- PGPASSWORD=${PGPASSWORD}
volumes:
- ./etc:/etc/kamailio
ports:
- 8060:8060
- 8082:8082
- 8083:8083
depends_on:
- db
- rtpengine
command: "-l udp:0.0.0.0:8060/${PUBLIC_IP}:8060 -l tcp:0.0.0.0:8060/${PUBLIC_IP}:8060 -l tls:0.0.0.0:8082/${PUBLIC_IP}:8082"
# webapp:
# image: nginx
# volumes:
# - ./sip-interface/build:/usr/share/nginx/html
# - ./webapp/tls:/etc/nginx/certs
# - ./webapp/default.conf:/etc/nginx/conf.d/default.conf
# ports:
# - 80:80
# - 443:443
volumes:
postgres-vol:
networks:
default:
external: true
name: unifonic-voice-network