-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
201 lines (201 loc) · 4.84 KB
/
docker-compose.yml
File metadata and controls
201 lines (201 loc) · 4.84 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.9"
services:
coturn:
environment:
REALM: ret
PSQL: host=db dbname=ret_dev user=postgres password=postgres options='-c search_path=coturn' connect_timeout=30
TLS_PORT: 5349
MIN_PORT: 50000
MAX_PORT: 50050
build:
context: .
dockerfile: dockerfiles/coturn.Dockerfile
volumes:
- coturn:/var/lib/coturn
ports:
- "5349:5349"
# This should be the same as MIN_PORT MAX_PORT.
# You might neeed to increase this number depending on how many clients you are connecting.
# (Keep the ports range small to improve container startup time)
- "50000-50050:50000-50050"
- "50000-50050:50000-50050/udp"
networks:
hubs_network:
db:
environment:
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD", "pg_isready"]
image: "postgres:14-alpine"
user: postgres
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
hubs_network:
dialog:
build:
context: .
dockerfile: dockerfiles/dialog.Dockerfile
environment:
AUTH_KEY: /etc/perms.pub.pem
HTTPS_CERT_FULLCHAIN: /etc/ssl/fullchain.pem
HTTPS_CERT_PRIVKEY: /etc/ssl/privkey.pem
INTERACTIVE: "false"
MEDIASOUP_MIN_PORT: 40000
MEDIASOUP_MAX_PORT: 40050
MEDIASOUP_ANNOUNCED_IP: 10.20.30.12
ports:
- "4443:4443"
# This should be the same as MEDIASOUP_MIN_PORT and MEDIASOUP_MAX_PORT
# You might neeed to increase this number depending on how many clients you are connecting.
# (Keep the ports range small to improve container startup time)
- "40000-40050:40000-40050"
- "40000-40050:40000-40050/udp"
volumes:
- dialog:/code
working_dir: /code
networks:
hubs_network:
ipv4_address: 10.20.30.12
hubs-admin:
build:
context: .
dockerfile: dockerfiles/hubs.Dockerfile
command: npm run local
environment:
INTERNAL_HOSTNAME: hubs-admin
healthcheck:
test: ["CMD", "curl", "-fk", "https://localhost:8989/admin.html"]
platform: linux/amd64
ports:
- "8989:8989"
volumes:
- hubs:/code
working_dir: /code/admin
networks:
hubs_network:
hubs-client:
build:
context: .
dockerfile: dockerfiles/hubs.Dockerfile
command: npm run local
environment:
INTERNAL_HOSTNAME: hubs-client
healthcheck:
start_period: 3m30s
test: ["CMD", "curl", "-fk", "https://localhost:8080"]
platform: linux/amd64
ports:
- "8080:8080"
volumes:
- hubs:/code
working_dir: /code
networks:
hubs_network:
hubs-storybook:
build:
context: .
dockerfile: dockerfiles/hubs.Dockerfile
command: npm run storybook
healthcheck:
test: ["CMD", "curl", "-fk", "http://hubs.local:6006"]
platform: linux/amd64
ports:
- "6006:6006"
volumes:
- hubs:/code
working_dir: /code
networks:
hubs_network:
postgrest:
build:
context: .
dockerfile: dockerfiles/postgrest.Dockerfile
networks:
hubs_network:
reticulum:
build:
context: ./services/reticulum
dockerfile: TurkeyDockerfile
target: dev
depends_on:
- db
environment:
DB_CREDENTIALS: postgres
DB_HOST: db
DIALOG_HOSTNAME: "hubs.local"
DIALOG_PORT: 4443
HUBS_ADMIN_INTERNAL_HOSTNAME: hubs-admin
HUBS_CLIENT_INTERNAL_HOSTNAME: hubs-client
POSTGREST_INTERNAL_HOSTNAME: postgrest
SPOKE_INTERNAL_HOSTNAME: spoke
ports:
- "4000:4000"
volumes:
- reticulum:/code
- retstorage:/code/storage/dev
networks:
hubs_network:
spoke:
build:
context: .
dockerfile: dockerfiles/spoke.Dockerfile
environment:
CORS_PROXY_SERVER: "hubs-proxy.local:4000"
INTERNAL_HOSTNAME: spoke
platform: linux/amd64
ports:
- "9090:9090"
volumes:
- spoke:/code
networks:
hubs_network:
networks:
hubs_network:
name: mozilla-hubs
ipam:
config:
- subnet: 10.20.30.0/24
volumes:
coturn:
dialog:
hubs:
pgdata:
reticulum:
retstorage:
spoke:
x-mutagen:
sync:
defaults:
ignore:
paths:
- ".DS_Store"
- ".gitignore"
- "/certs/"
- "/node_modules/"
- "package-lock.sha512"
vcs: true
mode: "two-way-resolved"
dialog:
alpha: ./services/dialog
beta: "volume://dialog"
hubs:
alpha: ./services/hubs
beta: "volume://hubs"
ignore:
paths:
- "/admin/certs/"
- "/admin/node_modules/"
reticulum:
alpha: ./services/reticulum
beta: "volume://reticulum"
ignore:
paths:
- "/_build/"
- "/bin/"
- "/storage/"
spoke:
alpha: ./services/spoke
beta: "volume://spoke"