-
-
Notifications
You must be signed in to change notification settings - Fork 149
/
compose.dev.yaml
205 lines (190 loc) · 4.79 KB
/
compose.dev.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# Development overlay for Routr
services:
edgeport01:
container_name: edgeport01
build:
context: .
dockerfile: ./mods/edgeport/Dockerfile
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
public:
ipv4_address: 10.111.220.2
internal:
ipv4_address: 10.111.221.2
aliases:
- sip01.edgeport.net
volumes:
- ./config/log4j2.yaml:/etc/routr/log4j2.yaml
edgeport02:
container_name: edgeport02
build:
context: .
dockerfile: ./mods/edgeport/Dockerfile
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
public:
ipv4_address: 10.111.220.3
internal:
ipv4_address: 10.111.221.3
aliases:
- sip02.edgeport.net
volumes:
- ./config/log4j2.yaml:/etc/routr/log4j2.yaml
dispatcher:
container_name: dispatcher
build: ./mods/dispatcher
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
internal:
ipv4_address: 10.111.221.4
location:
container_name: location
build: ./mods/location
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
internal:
ipv4_address: 10.111.221.5
connect:
container_name: connect
build: ./mods/connect
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
internal:
ipv4_address: 10.111.221.6
apiserver:
container_name: apiserver
build: ./mods/simpledata
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
internal:
ipv4_address: 10.111.221.8
requester:
container_name: requester
build:
context: .
dockerfile: ./mods/requester/Dockerfile
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
internal:
ipv4_address: 10.111.221.9
registry:
container_name: registry
build: ./mods/registry
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
networks:
internal:
ipv4_address: 10.111.221.10
# RTPEngine requires of network mode "host" to work properly. However, this option doesn't work on OSX.
# For development, we are opening a few ports to the host machine. For production, you must use
# the network_mode: host which works on Linux.
rtpengine:
image: fonoster/rtpengine:latest
restart: always
# Uncomment the following line for production
# network_mode: host
environment:
# Set DOCKER_HOST_ADDRESS to an IP address that is reachable to the SIP clients
PUBLIC_IP: ${DOCKER_HOST_ADDRESS}
PORT_MIN: 10000
PORT_MAX: 10020
LOG_LEVEL: 8
ports:
- 22222:22222/udp
- 10000-10020:10000-10020/udp
redis:
image: bitnami/redis:7.4.1
restart: always
environment:
ALLOW_EMPTY_PASSWORD: yes
ports:
- 6379:6379
postgres:
image: bitnami/postgresql:17.2.0
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
TZ: UTC
PGTZ: UTC
ports:
- 5432:5432
volumes:
- db:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
environment:
- ADMINER_DEFAULT_SERVER=postgres
ports:
- 8080:8080
# Tracing monitoring
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:1.54
ports:
- 16686:16686
- 14268:14268
- 14250:14250
networks:
internal:
#
# SIP End to End Test (SEET) compliance test for SIPConnect v1.1 support
# docker compose -f compose.yaml -f compose.dev.yaml up \
# --build --abort-on-container-exit --exit-code-from compliance compliance
#
compliance:
container_name: compliance
image: fonoster/seet:1.2.0
depends_on:
- edgeport01
- edgeport02
- dispatcher
- registry
- requester
- apiserver
- connect
- location
environment:
SCENARIOS: /seet.json
ports:
- 7060:7060/udp
volumes:
- ./etc/seet.json/:/seet.json
- ./etc/scenarios:/scenarios
networks:
internal:
ipv4_address: 10.111.221.22
public:
ipv4_address: 10.111.220.22
aliases:
- sip.provider.net
volumes:
db:
driver: local
networks:
public:
driver: "bridge"
ipam:
config:
- subnet: 10.111.220.0/24
internal:
driver: "bridge"
ipam:
config:
- subnet: 10.111.221.0/24