chore(backend): Automatische import van testdata in Keycloack.
Zie idp/README.md voor meer informatie erover wat de testdata inhoudt.
This commit is contained in:
parent
69ba8c9567
commit
4f201a1253
4 changed files with 4141 additions and 3 deletions
|
@ -11,12 +11,14 @@ services:
|
|||
- postgres_data:/var/lib/postgresql/data
|
||||
idp: # Bron: https://medium.com/@fingervinicius/easy-running-keycloak-with-docker-compose-b0d7a4ee2358
|
||||
image: quay.io/keycloak/keycloak:latest
|
||||
volumes:
|
||||
- ./idp:/opt/keycloak/data/import
|
||||
environment:
|
||||
KC_HOSTNAME: localhost
|
||||
KC_HOSTNAME_PORT: 7080
|
||||
KC_HOSTNAME_STRICT_BACKCHANNEL: "true"
|
||||
KEYCLOAK_ADMIN: admin
|
||||
KEYCLOAK_ADMIN_PASSWORD: admin
|
||||
KC_BOOTSTRAP_ADMIN_USERNAME: admin
|
||||
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
|
||||
KC_HEALTH_ENABLED: "true"
|
||||
KC_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
|
@ -24,9 +26,16 @@ services:
|
|||
interval: 15s
|
||||
timeout: 2s
|
||||
retries: 15
|
||||
command: ["start-dev", "--http-port", "7080", "--https-port", "7443"]
|
||||
command: [
|
||||
"start-dev",
|
||||
"--http-port", "7080",
|
||||
"--https-port", "7443",
|
||||
"--import-realm"
|
||||
]
|
||||
ports:
|
||||
- "7080:7080"
|
||||
- "7443:7443"
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue