forked from H2-invent/jitsi-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
150 lines (138 loc) · 4.81 KB
/
docker-compose.test.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
version: '3.8'
services:
traefik-ja:
image: "traefik:v2.5"
container_name: "traefik-ja"
hostname: keycloak.${PUBLIC_URL}
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--api.dashboard=true"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.entryPoints=traefik"
- "traefik.http.routers.api.rule=PathPrefix(`/api`) || PathPrefix(`/dashboard`)"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.api.middlewares=api-auth"
- "traefik.http.middlewares.api-auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/" # test:test
ports:
- "80:80"
- "443:443"
- "8181:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- ./tools/certs:/tools/certs
- ./tools/traefik/config.yml:/etc/traefik/dynamic_conf/conf.yml:ro
websocket-ja:
build: nodejs
restart: unless-stopped
environment:
WEBSOCKET_SECRET: '${MERCURE_JWT_SECRET}'
# Uncomment the following line to enable the development mode
labels:
- "traefik.enable=true"
- "traefik.http.routers.websocket-ja.rule=Host(`${PUBLIC_URL}`) && PathPrefix(`/ws`)"
- "traefik.http.routers.websocket-ja.entrypoints=web"
- "traefik.http.services.websocket-ja.loadbalancer.server.port=3000"
volumes:
- caddy_data:/data
- caddy_config:/config
app-ja:
build: .
depends_on:
db-ja:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-s", "-f", "-i", "http://localhost:80/health/check" ]
interval: 20s
timeout: 10s
start_period: 30s
retries: 10
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
APP_ENV: dev
APP_DEBUG: 1
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}
OAUTH_KEYCLOAK_REALM: jitsiadmin
MERCURE_URL: http://websocket-ja:3000/.well-known/mercure
MERCURE_PUBLIC_URL: ${HTTP_METHOD}://${PUBLIC_URL}
MERCURE_JWT_SECRET: ${MERCURE_JWT_SECRET}
WEBSOCKET_SECRET: ${MERCURE_JWT_SECRET}
MAILER_DSN: ${MAILER_DSN}
registerEmailAdress: ${registerEmailAdress}
laF_baseUrl: ${HTTP_METHOD}://${PUBLIC_URL}
VICH_BASE: ${HTTP_METHOD}://${PUBLIC_URL}
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.rule=Host(`${PUBLIC_URL}`)"
- "traefik.http.routers.app-ja.entrypoints=web"
- "traefik.http.services.app-ja.loadbalancer.server.port=80"
volumes:
- image_upload:/var/www/html/public/uploads/images
- theme_data:/var/www/html/theme
- theme_assests_data:/var/www/html/public/theme
db-ja:
image: mariadb:latest
hostname: ${RANDOMTAG}db-ja
environment:
MARIADB_ROOT_PASSWORD: test
healthcheck:
test: [ "CMD", "mariadb-admin" ,"ping", "-h", "localhost","-ptest" ]
timeout: 20s
retries: 10
volumes:
- mariadb:/var/lib/mysql
- ./docker/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
keycloak-ja:
image: quay.io/keycloak/keycloak:22.0.3
hostname: keycloak.localhost
depends_on:
db-ja:
condition: service_healthy
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PW}
KC_DB: mariadb
KC_DB_PASSWORD: ${KEYCLOAK_PW}
KC_DB_URL: jdbc:mariadb://${RANDOMTAG}db-ja:3306/keycloak
KC_DB_USERNAME: keycloak
KC_HOSTNAME_URL: ${HTTP_METHOD}://keycloak.${PUBLIC_URL}
KC_HOSTNAME_PATH: ${HTTP_METHOD}://keycloak.${PUBLIC_URL}
KC_HOSTNAME_ADMIN_URL: ${HTTP_METHOD}://keycloak.${PUBLIC_URL}
KC_HTTP_RELATIVE_PATH: /
KC_PROXY: passthrough
command:
- start-dev
- --import-realm
labels:
- "traefik.enable=true"
- "traefik.http.routers.keycloak-ja.rule=Host(`keycloak.${PUBLIC_URL}`)"
- "traefik.http.routers.keycloak-ja.entrypoints=web"
- "traefik.http.services.keycloak-ja.loadbalancer.server.port=8080"
volumes:
- ./docker/keycloak/:/opt/keycloak/data/import
volumes:
mariadb:
caddy_data:
caddy_config:
image_upload:
theme_data:
theme_assests_data: