forked from fonoster/routr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
201 lines (189 loc) · 4.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
201 lines (189 loc) · 4.71 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
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
version: "3"
services:
# Main EdgePort server
edgeport01:
container_name: edgeport01
image: fonoster/routr-edgeport
build:
context: .
dockerfile: ./mods/edgeport/Dockerfile
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
ports:
- 5060:5060
- 5060:5060/udp
- 5061:5061
- 5062:5062
- 5063:5063
volumes:
- ./config/edgeport.yaml:/etc/routr/edgeport.yaml
networks:
public:
ipv4_address: 10.111.220.2
internal:
ipv4_address: 10.111.221.2
aliases:
- sip01.edgeport.net
# Secondary EdgePort server
edgeport02:
container_name: edgeport02
image: fonoster/routr-edgeport
build:
context: .
dockerfile: ./mods/edgeport/Dockerfile
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
ports:
- 6060:6060
- 6060:6060/udp
- 6061:6061
- 6062:6062
- 6063:6063
volumes:
- ./config/edgeport.alt.yaml:/etc/routr/edgeport.yaml
networks:
public:
ipv4_address: 10.111.220.3
internal:
ipv4_address: 10.111.221.3
aliases:
- sip02.edgeport.net
# Takes care of routing traffic from the EdgePort servers
dispatcher:
container_name: dispatcher
image: fonoster/routr-dispatcher
build: ./mods/dispatcher
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
expose:
- 51901
volumes:
- ./config/dispatcher.yaml:/etc/routr/dispatcher.yaml
networks:
internal:
ipv4_address: 10.111.221.4
# Store the location to all SIP endpoints in the network
location:
container_name: location
image: fonoster/routr-location
build: ./mods/location
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
expose:
- 51902
volumes:
- ./config/location.yaml:/etc/routr/location.yaml
networks:
internal:
ipv4_address: 10.111.221.5
# Connect processor
connect:
container_name: connect
image: fonoster/routr-connect
build: ./mods/connect
environment:
LOCATION_ADDR: location:51902
API_ADDR: apiserver:51907
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
expose:
- 51904
networks:
internal:
ipv4_address: 10.111.221.6
# Simple APIServer
apiserver:
container_name: apiserver
image: fonoster/routr-simpledata
build: ./mods/simpledata
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
expose:
- 51907
volumes:
- ./config/resources:/etc/routr/resources
networks:
internal:
ipv4_address: 10.111.221.8
# Takes gRPC requests and sends them to an EdgePort
requester:
container_name: requester
image: fonoster/routr-requester
build: ./mods/requester
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
expose:
- 51909
networks:
internal:
ipv4_address: 10.111.221.9
# Sends registration request on behalf of trunks
registry:
container_name: registry
image: fonoster/routr-registry
build: ./mods/registry
environment:
LOGS_LEVEL: verbose
OTEL_EXPORTER_JAEGER_ENDPOINT: http://jaeger:14268/api/traces
expose:
- 51910
volumes:
- ./config/registry.yaml:/etc/routr/registry.yaml
networks:
internal:
ipv4_address: 10.111.221.10
# Tracing monitoring
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:1.30.0
ports:
- 16686:16686
- 14268:14268
- 14250:14250
networks:
internal:
ipv4_address: 10.111.221.12
#
# SIP End to End Test (SEET) compliance test for SIPConnect v1.1 support
# docker-compose up --abort-on-container-exit --exit-code-from compliance
#
compliance:
container_name: compliance
image: fonoster/seet
depends_on:
- edgeport01
- edgeport02
- dispatcher
- registry
- requester
- apiserver
- connect
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
aliases:
- sip.provider.net
networks:
public:
driver: "bridge"
ipam:
config:
- subnet: 10.111.220.1/24
internal:
driver: "bridge"
ipam:
config:
- subnet: 10.111.221.1/24