-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
154 lines (145 loc) · 3.58 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
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
version: "3.7"
services:
freeswitch:
image: ${DKH_REPO}/freeswitch:${TAG}
container_name: ${CONTAINER_NAME_PREFIX}freeswitch
restart: always
networks:
1_reach3:
aliases:
- freeswitch
environment:
- NETWORK=reach3
- NODE=freeswitch@freeswitch.reach3${NETWORK_NAME_SUFFIX}
- REACH_NODE=reach@reach.reach3${NETWORK_NAME_SUFFIX}
- REACH_HOST=http://reach.reach3${NETWORK_NAME_SUFFIX}:8937
logging:
driver: "journald"
reach:
image: ${DKH_REPO}/reach:${TAG}
container_name: ${CONTAINER_NAME_PREFIX}reach
restart: always
networks:
1_reach3:
aliases:
- reach
volumes:
- db-reach:/home/user/reach/db-mnesia
environment:
- NETWORK=reach3${NETWORK_NAME_SUFFIX}
- REACH_NODE=reach@reach.reach3${NETWORK_NAME_SUFFIX}
- DOMAIN=${DOMAIN}
- NODE=reach@reach.reach3${NETWORK_NAME_SUFFIX}
- FSNODE=freeswitch@freeswitch.reach3${NETWORK_NAME_SUFFIX}
- KAMNODE=kamailio@kamailio.reach3${NETWORK_NAME_SUFFIX}
logging:
driver: "journald"
kamailio:
image: ${DKH_REPO}/kamailio:${TAG}
container_name: ${CONTAINER_NAME_PREFIX}kamailio
restart: always
ports:
- 5060:5060/udp
- 5060:5060/tcp
networks:
0_sip_ext:
aliases:
- kamailio
1_reach3:
aliases:
- kamailio
environment:
- NETWORK=reach3
- REACH_NODE=reach@reach.reach3${NETWORK_NAME_SUFFIX}
- NAME=kamailio.reach3${NETWORK_NAME_SUFFIX}
- EXT_IP=${EXT_IP}
- HOST_IP=${HOST_IP}
- NODE=kamailio@kamailio.reach3${NETWORK_NAME_SUFFIX}
logging:
driver: "journald"
timescale:
image: ${DKH_REPO}/timescale:${TAG}
container_name: ${CONTAINER_NAME_PREFIX}timescale
restart: always
networks:
1_reach3:
aliases:
- timescale
environment:
- NETWORK=reach3
- PASSWORD=reachpass
volumes:
- db-timescale:/var/lib/postgresql/data
logging:
driver: "journald"
frontend:
image: ${DKH_REPO}/frontend:${TAG}
container_name: ${CONTAINER_NAME_PREFIX}frontend
restart: always
networks:
1_reach3:
aliases:
- frontend
environment:
- NETWORK=reach3
- DOMAIN=${DOMAIN}
- REACH_WS
logging:
driver: "journald"
ingress:
image: ${DKH_REPO}/ingress:${TAG}
container_name: ${CONTAINER_NAME_PREFIX}ingress
restart: always
ports:
- 80:80
- 443:443
- 8080:8080
networks:
1_reach3:
aliases:
- ingress
environment:
- NETWORK=reach3${NETWORK_NAME_SUFFIX}
- DOMAIN=${DOMAIN}
- HTTPS_OPTION=${HTTPS_OPTION}
- LE_EMAIL=${LE_EMAIL}
volumes:
- ${PWD}/cert:/cert
logging:
driver: "journald"
rr:
image: ${DKH_REPO}/rr:${TAG}
container_name: ${CONTAINER_NAME_PREFIX}rr
restart: always
networks:
1_reach3:
aliases:
- rr
environment:
- NODE=rr@rr.reach3
volumes:
- db-rr:/home/user/rr/data
logging:
driver: "journald"
networks:
1_reach3:
driver: bridge
name: reach3${NETWORK_NAME_SUFFIX}
ipam:
driver: default
config:
- subnet: ${BRIDGE_REACH3_SUBNET}
0_sip_ext:
driver: bridge
name: ext${NETWORK_NAME_SUFFIX}
ipam:
driver: default
config:
- subnet: ${BRIDGE_EXT_SUBNET}
volumes:
db-timescale:
name: db-timescale.reach3${NETWORK_NAME_SUFFIX}
db-reach:
name: db-reach.reach3${NETWORK_NAME_SUFFIX}
db-rr:
name: db-rr.reach3${NETWORK_NAME_SUFFIX}