-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (58 loc) · 1.68 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
version: '3.8'
volumes:
mssqldata:
services:
database:
container_name: uid2_selfserve_mssql
# image: mcr.microsoft.com/mssql/server:2022-latest
build:
context: .
dockerfile: sqlServer/SqlServerDockerfile
ports:
- '11433:1433'
volumes:
- mssqldata:/var/opt/mssql
environment:
ACCEPT_EULA: 'yes'
MSSQL_SA_PASSWORD: 'D3velopmentP0'
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P D3velopmentP0 -Q 'SELECT 1'"]
interval: 10s
timeout: 10s
retries: 5
keycloak:
container_name: uid2_selfserve_keycloak
image: quay.io/keycloak/keycloak:24.0.0
environment:
KC_DB: mssql
KC_DB_URL: jdbc:sqlserver://database:1433;DatabaseName=keycloak;encrypt=true;trustServerCertificate=true;
KC_TRANSACTION_XA_ENABLED: 'false'
KC_DB_USERNAME: sa
KC_DB_PASSWORD: D3velopmentP0
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: D3velopmentP0
SSP_WEB_HOST: http://localhost:3000
ports:
- 18080:8080
- 19990:9990
depends_on:
database:
condition: service_healthy
command:
- start-dev
- --import-realm
- --spi-theme-static-max-age=-1
- --spi-theme-cache-themes=false
- --spi-theme-cache-templates=false
- --spi-theme-welcome-theme=uid2-theme
- --health-enabled=true
- --metrics-enabled=true
- --spi-connections-jpa-legacy-migration-strategy=update
volumes:
- ./keycloak/realm:/opt/keycloak/data/import
- ./keycloak/themes:/opt/keycloak/themes
mailhog:
image: mailhog/mailhog
ports:
- 11025:1025 # smtp server
- 18025:8025 # web ui