-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (34 loc) · 1.3 KB
/
docker-compose.yaml
File metadata and controls
34 lines (34 loc) · 1.3 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
services:
mssql:
image: mcr.microsoft.com/mssql/server
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Password!23
- MSSQL_PID=Developer
mssqlscripts:
image: mcr.microsoft.com/mssql-tools
depends_on:
- mssql
command: /bin/bash -c 'until /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P "Password!23" -Q "create database Keycloak"; do sleep 5; done'
keycloak:
image: quay.io/keycloak/keycloak:19.0.3
command: ["start-dev","--spi-connections-jpa-default-migration-strategy=update"]
ports:
- '8080:8080'
- '8443:8443'
environment:
# ver :https://www.keycloak.org/server/all-config#_hostname
- KEYCLOAK_ADMIN=pqs
- KEYCLOAK_ADMIN_PASSWORD=Primaria001.
- KC_DB=mssql
- KC_DB_URL=jdbc:sqlserver://mssql;databaseName=Keycloak;encrypt=true;trustServerCertificate=true
- KC_DB_USERNAME=sa
- KC_DB_PASSWORD=Password!23
- KC_HEALTH_ENABLED=true
- KC_HOSTNAME_STRICT=false # DEDUCE EL HOSTNAME DEL REQUEST HTTP (NO RECOMENDABLE EN PROD)
- KC_HTTP-ENABLED=true #habilita el http
- KC_TRANSACTION_XA_ENABLED=false #depende del motor en el caso utulizando no soporta este feature
# - KC_METRICS_ENABLED=true
# - KC_FEATURES=token-exchange