-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* keycloak with dev-stage via h2-file
- Loading branch information
Showing
6 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ out/ | |
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: dartvader-dev-env | ||
|
||
services: | ||
keycloak: | ||
image: quay.io/keycloak/keycloak:latest | ||
environment: | ||
KEYCLOAK_ADMIN: admin | ||
KEYCLOAK_ADMIN_PASSWORD: admin | ||
command: | ||
- start-dev | ||
ports: | ||
- "8081:8080" | ||
volumes: | ||
- ./keycloak/h2:/opt/keycloak/data/h2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
keycloakdb.trace.db |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Development Environment | ||
|
||
_This document describes how to set up a development environment for the project._ | ||
|
||
## Docker-Compose | ||
|
||
_Run [`docker-compose.yaml`](..%2F..%2Fdev-env-data%2Fdocker-compose.yaml) to start dev-stage._ | ||
|
||
The project uses Docker-Compose to start the development environment. The following services are started: | ||
|
||
* [Keycloak](keycloak-docs.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Keycloak Docs | ||
|
||
_Hilfe für den Umgang mit dem Dev-Keycloak._ | ||
|
||
Der Keycloak ist unter [http://localhost:8081](http://localhost:8081) erreichbar. | ||
|
||
## Standard Realm | ||
|
||
_Beschreibung der standard Einstellung für den dev-keycloak._ | ||
|
||
## Master Realm | ||
|
||
Standard admin: admin/admin | ||
|
||
## DartVader Realm | ||
|
||
### Dev-DartVader - Client | ||
|
||
_Für Dev-Stage für die DartVader App._ | ||
|
||
Client-ID: Dev-DartVader | ||
Erlaubte Adressen: | ||
Frontend: http://localhost:4200 | ||
|
||
#### Role: DARTVADER_USER | ||
|
||
_Rolle für Client zugehörigkeit. Als dummy für Rollen-Model._ | ||
Der Nutzer `user` hat diese Rolle. | ||
|
||
### User | ||
|
||
* User: user/user | ||
* Rolle: DARTVADER_USER | ||
|
||
* No-User: nuser/nuser | ||
* ohne DARTVADER_USER | ||
|
||
## Änderungen Speichern | ||
|
||
Die Änderungen am Keycloak werden in der [`keycloakdb.mv.db`](..%2F..%2Fdev-env-data%2Fkeycloak%2Fh2%2Fkeycloakdb.mv.db) | ||
gespeichert. | ||
Diese wird beim Starten des Keycloak-Containers in den Container gemountet. Hierdurch bleiben die Änderungen erhalten | ||
und können mit dem repo synchronisiert werden. Damit kann ein dev-stage des Keycloak einfach geteilt werden. |