forked from H2-invent/jitsi-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.cluster.yml
267 lines (244 loc) · 9.02 KB
/
docker-compose.cluster.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
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
version: '3.8'
x-app-common: &jitsi_admin_app
build: .
environment:
APACHE_DOCUMENT_ROOT: "public/"
PHP_EXTENSION_XDEBUG: "1"
PHP_INI_MEMORY_LIMIT: "1G"
PHP_EXTENSION_LDAP: 1
PHP_EXTENSION_INTL: 1
DATABASE_URL: mysql://jitsiadmin:${JITSI_ADMIN_PW}@${RANDOMTAG}db-ja:3306/jitsiadmin
MERCURE_URL: http://${RANDOMTAG}websocket-ja:3000/.well-known/mercure
MERCURE_PUBLIC_URL: ${HTTP_METHOD}://websocket.${PUBLIC_URL}
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET}
WEBSOCKET_SECRET: ${MERCURE_JWT_SECRET}
MAILER_DSN: ${MAILER_DSN}
registerEmailAdress: ${registerEmailAdress}
services:
websocket-ja:
build: nodejs
hostname: ${RANDOMTAG}websocket-ja
restart: unless-stopped
environment:
WEBSOCKET_SECRET: '${MERCURE_JWT_SECRET}'
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/healthz"]
interval: 10s
retries: 5
timeout: 10s
start_period: 10s
labels:
- "traefik.enable=true"
- "traefik.http.routers.websocket-ja-${RANDOMTAG}.rule=Host(`websocket.${PUBLIC_URL}`)"
- "traefik.http.routers.websocket-ja-${RANDOMTAG}.entrypoints=web"
- "traefik.http.routers.websocket-ja-${RANDOMTAG}.tls=true"
- "traefik.http.services.websocket-ja-${RANDOMTAG}.loadbalancer.server.port=3000"
- "traefik.http.routers.websocket-ja-${RANDOMTAG}.tls.certresolver=letsencrypt"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=http"
- "traefik.http.routers.app-secure.middlewares=sslheader@docker"
volumes:
- caddy_config:/config
networks:
- default
- jitsi-admin
whiteboard-ja:
build: https://github.com/H2-invent/materialWhitebophir.git
restart: unless-stopped
environment:
AUTH_SECRET_KEY: '${MERCURE_JWT_SECRET}'
PORT: 80
labels:
- "traefik.enable=true"
- "traefik.http.routers.whiteboard-ja-${RANDOMTAG}.rule=Host(`whiteboard.${PUBLIC_URL}`)"
- "traefik.http.routers.whiteboard-ja-${RANDOMTAG}.entrypoints=web"
- "traefik.http.routers.whiteboard-ja-${RANDOMTAG}.tls=true"
- "traefik.http.services.whiteboard-ja-${RANDOMTAG}.loadbalancer.server.port=80"
- "traefik.http.routers.whiteboard-ja-${RANDOMTAG}.tls.certresolver=letsencrypt"
volumes:
- wbo-boards:/opt/app/server-data
networks:
- default
etherpad:
#build: .
image: etherpad/etherpad:latest
restart: unless-stopped
environment:
AUTH_SECRET_KEY: MY_SECRET
PAD_OPTIONS_SHOW_CHAT: false
PAD_SHORTCUTS_ENABLED_ALT_C: false
DEFAULT_PAD_TEXT: "Agenda\n\nTOP1\n\nTOP2\n\nTOP3\n\nTOP4\n\n\n\nNext Steps:\n Write here what to do next\n\n\n\n\nQuestions:\nWrite here any questions the team have\n\n"
security_opt:
- no-new-privileges:true
volumes:
- etherpad_data:/opt/etherpad-lite/var
networks:
- default
labels:
- "traefik.enable=true"
- "traefik.http.routers.etherpad-ja-${RANDOMTAG}.tls=true"
- "traefik.http.routers.etherpad-ja-${RANDOMTAG}.rule=Host(`meeting-notes.${PUBLIC_URL}`)"
- "traefik.http.routers.etherpad-ja-${RANDOMTAG}.entrypoints=web"
- "traefik.http.services.etherpad-ja-${RANDOMTAG}.loadbalancer.server.port=9001"
- "traefik.http.routers.etherpad-ja-${RANDOMTAG}.tls.certresolver=letsencrypt"
screego:
image: screego/server:1.0.1
restart: unless-stopped
networks:
- default
expose:
- 5050
ports:
- 0.0.0.0:3478:3478
- 0.0.0.0:3478:3478/udp
labels:
- "traefik.enable=true"
- "traefik.http.routers.screego-ja-${RANDOMTAG}.rule=Host(`screego.${PUBLIC_URL}`)"
- "traefik.http.routers.screego-ja-${RANDOMTAG}.entrypoints=web"
- "traefik.http.routers.screego-ja-${RANDOMTAG}.tls.certresolver=letsencrypt"
- "traefik.http.services.screego-ja-${RANDOMTAG}.loadbalancer.server.port=5050"
# volumes:
# - ./htpasswd:/etc/screego.passwd:ro
environment:
SCREEGO_EXTERNAL_IP: "17.5.7.8"
SCREEGO_SECRET: "xxxxxxxxxxxx"
SCREEGO_SERVER_ADDRESS: "0.0.0.0:5050"
SCREEGO_TURN_ADDRESS: "0.0.0.0:3478"
SCREEGO_TRUST_PROXY_HEADERS: "true"
SCREEGO_AUTH_MODE: "turn"
# SCREEGO_CORS_ALLOWED_ORIGINS: "https://screen.example.org"
SCREEGO_USERS_FILE: "/etc/screego.passwd"
SCREEGO_LOG_LEVEL: debug
#Here is the Jitsi-Admin app
app-ja:
<<: *jitsi_admin_app
hostname: ${RANDOMTAG}app-ja
restart: unless-stopped
healthcheck:
test: curl -f http://localhost:80/health/check || exit 1
interval: 10s
retries: 5
timeout: 10s
start_period: 30s
depends_on:
db-ja:
condition: service_healthy
environment:
APACHE_DOCUMENT_ROOT: "public/"
PHP_EXTENSION_XDEBUG: "1"
PHP_INI_MEMORY_LIMIT: "1G"
PHP_EXTENSION_LDAP: 1
PHP_EXTENSION_INTL: 1
PHP_INI_UPLOAD_MAX_FILESIZE: 8M
PHP_INI_POST_MAX_SIZE: 8M
DATABASE_URL: mysql://jitsiadmin:${JITSI_ADMIN_PW}@${RANDOMTAG}db-ja:3306/jitsiadmin
MAILER_TRANSPORT: smtp
OAUTH_KEYCLOAK_CLIENT_ID: jitsiadmin
OAUTH_KEYCLOAK_CLIENT_SECRET: ${OAUTH_KEYCLOAK_CLIENT_SECRET}
OAUTH_KEYCLOAK_SERVER: ${HTTP_METHOD}://keycloak.${PUBLIC_URL}/auth
OAUTH_KEYCLOAK_REALM: jitsiadmin
MERCURE_URL: http://${RANDOMTAG}websocket-ja:3000/.well-known/mercure
MERCURE_PUBLIC_URL: ${HTTP_METHOD}://websocket.${PUBLIC_URL}
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET}
WEBSOCKET_SECRET: ${MERCURE_JWT_SECRET}
MAILER_DSN: ${MAILER_DSN}
laF_version: ${GIT_VERSION}
registerEmailAdress: ${registerEmailAdress}
laF_baseUrl: ${HTTP_METHOD}://${PUBLIC_URL}
VICH_BASE: ${HTTP_METHOD}://${PUBLIC_URL}
LAF_WHITEBOARD_FUNCTION: 1
WHITEBOARD_URL: ${HTTP_METHOD}://whiteboard.${PUBLIC_URL}
WHITEBOARD_SECRET: '${MERCURE_JWT_SECRET}'
ETHERPAD_URL: ${HTTP_METHOD}://meeting-notes.${PUBLIC_URL}
ETHERPAD_SECRET: MY_SECRET
LAF_ETHERPAD_FUNCTION: 1
SEND_REPORT_AFTER_MEETING: 1
input_settings_allow_timezone: 1
allowTimeZoneSwitch: 1
CRON_USER_1: root
CRON_SCHEDULE_1: "* * * * *"
CRON_COMMAND_1: "php /var/www/html/bin/console cron:run"
labels:
- "traefik.enable=true"
- "traefik.http.routers.app-ja-${RANDOMTAG}.tls=true"
- "traefik.http.routers.app-ja-${RANDOMTAG}.rule=Host(`${PUBLIC_URL}`)"
- "traefik.http.routers.app-ja-${RANDOMTAG}.entrypoints=web"
- "traefik.http.services.app-ja-${RANDOMTAG}.loadbalancer.server.port=80"
- "traefik.http.routers.app-ja-${RANDOMTAG}.tls.certresolver=letsencrypt"
- "traefik.http.services.app-ja-${RANDOMTAG}.loadbalancer.sticky=true"
- "traefik.http.services.app-ja-${RANDOMTAG}.loadbalancer.sticky.cookie.name=jad"
- "traefik.http.services.app-ja-${RANDOMTAG}.loadbalancer.sticky.cookie.secure=true"
volumes:
- image_upload:/var/www/html/public/uploads/images
- $PWD/dockerupdate.sh:/etc/container/startup.sh
networks:
- default
- jitsi-admin
app-queu:
<<: *jitsi_admin_app
restart: unless-stopped
deploy:
mode: replicated
replicas: 2
depends_on:
app-ja:
condition: service_healthy
command: php /var/www/html/bin/console messenger:consume async --memory-limit=126m
networks:
- default
- jitsi-admin
db-ja:
image: mariadb:latest
hostname: ${RANDOMTAG}db-ja
environment:
MARIADB_ROOT_PASSWORD: test
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
volumes:
- mariadb:/var/lib/mysql
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
networks:
- jitsi-admin
keycloak-ja:
image: jboss/keycloak:latest
hostname: ${RANDOMTAG}keycloak-ja
depends_on:
db-ja:
condition: service_healthy
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: ${KEYCLOAK_ADMIN_PW}
DB_VENDOR: mariadb
DB_ADDR: ${RANDOMTAG}db-ja
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: ${KEYCLOAK_PW}
DB_PORT: 3306
KEYCLOAK_IMPORT: /tmp/realm-export.json
KEYCLOAK_FRONTEND_URL: "${HTTP_METHOD}://keycloak.${PUBLIC_URL}/auth"
JAVA_OPTS_APPEND: "-Djboss.as.management.blocking.timeout=7200"
JDBC_PARAMS: "connectTimeout=30000"
labels:
- "traefik.enable=true"
- "traefik.http.routers.keycloak-ja-${RANDOMTAG}.tls=true"
- "traefik.http.routers.keycloak-ja-${RANDOMTAG}.rule=Host(`keycloak.${PUBLIC_URL}`)"
- "traefik.http.routers.keycloak-ja-${RANDOMTAG}.entrypoints=web"
- "traefik.http.services.keycloak-ja-${RANDOMTAG}.loadbalancer.server.port=8080"
- "traefik.http.routers.keycloak-ja-${RANDOMTAG}.tls.certresolver=letsencrypt"
volumes:
- ./keycloak/realm-export.json:/tmp/realm-export.json
networks:
- default
- jitsi-admin
volumes:
mariadb:
caddy_config:
image_upload:
wbo-boards:
etherpad_data:
networks:
default:
name: gateway
jitsi-admin:
internal: true