Last active
June 5, 2023 09:35
-
-
Save vincentchalamon/e339724ce994fa6b4ebb8d97719aecf1 to your computer and use it in GitHub Desktop.
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
version: "3.8" | |
services: | |
# ... | |
keycloak-config-cli: | |
image: bitnami/keycloak-config-cli:5-debian-11 | |
environment: | |
KEYCLOAK_URL: http://caddy/oidc/ | |
KEYCLOAK_USER: ${KEYCLOAK_USER:-admin} | |
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD:-!ChangeMe!} | |
KEYCLOAK_AVAILABILITYCHECK_ENABLED: true | |
KEYCLOAK_AVAILABILITYCHECK_TIMEOUT: 120s | |
IMPORT_FILES_LOCATIONS: '/config/*' | |
depends_on: | |
- keycloak | |
volumes: | |
- ./keycloak-config:/config |
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
{ | |
"realm": "demo", | |
"displayName": "API Platform - Demo", | |
"enabled": true, | |
"registrationAllowed": false, | |
"users": [ | |
{ | |
"username": "admin", | |
"enabled": true, | |
"emailVerified": true, | |
"firstName": "Chuck", | |
"lastName": "NORRIS", | |
"email": "admin@example.com", | |
"credentials": [ | |
{ | |
"type": "password", | |
"value": "Pa55w0rd" | |
} | |
] | |
} | |
], | |
"clients": [ | |
{ | |
"clientId": "api-platform-swagger", | |
"enabled": true, | |
"redirectUris": ["*"], | |
"webOrigins": ["*"], | |
"publicClient": true | |
}, | |
{ | |
"clientId": "api-platform-pwa", | |
"enabled": true, | |
"redirectUris": ["*"], | |
"webOrigins": ["*"], | |
"publicClient": true | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment