Docker für Keykloak Test

This commit is contained in:
2026-08-04 13:51:43 +02:00
parent fd1d0bdda5
commit c0646fdfc6
8 changed files with 207 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
services:
keycloak:
image: quay.io/keycloak/keycloak:26.0
command: start-dev --import-realm
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
ports:
- '8080:8080'
volumes:
- ./realms.json:/opt/keycloak/data/import/realms.json
+43
View File
@@ -0,0 +1,43 @@
[{
"realm": "simplycpq",
"enabled": true,
"users": [{
"username": "tsindt",
"enabled": true,
"emailVerified": true,
"firstName": "Thomas",
"lastName": "Sindt",
"email": "thomas.sindt@example.com",
"credentials": [{
"type": "password",
"value": "XD14ko8d",
"temporary": false
}],
"realmRoles": ["admin"]
}],
"roles": {
"realm": [{
"name": "admin",
"description": "Administrator role"
}]},
"clients": [{
"clientId": "scpq-backend",
"name": "Simply CPQ Backend",
"protocol": "openid-connect",
"publicClient": false,
"secret": "express-secret",
"serviceAccountsEnabled": true,
"standardFlowEnabled": false,
"directAccessGrantsEnabled": true,
"redirectUris": [],
"webOrigins": []
},{
"clientId": "scpq",
"name": "Simply CPQ",
"protocol": "openid-connect",
"publicClient": true,
"redirectUris": ["http://localhost:5173/*"],
"webOrigins": ["http://localhost:5173"],
"standardFlowEnabled": true
}]
}]