Last active
September 12, 2022 13:00
-
-
Save makinuk/baae320dbcd21f66e82642b169cfc203 to your computer and use it in GitHub Desktop.
Keccloak On Docker
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
Running Keycloak on docker | |
https://www.keycloak.org/server/all-config#_database |
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
COMPOSE_PROJECT_NAME=sso_keycloak |
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.3" | |
services: | |
keycloak: | |
container_name: keycloak | |
image: "quay.io/keycloak/keycloak:latest" | |
env_file: | |
- ./keycloak.prod.env | |
command: | |
- start | |
ports: | |
- "8080:8080" | |
- "8787:8787" # debug port | |
networks: | |
- backend | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
networks: | |
backend: | |
driver: bridge |
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
docker run --name keycloak_test -p 8080:8080 \ | |
-e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=password \ | |
quay.io/keycloak/keycloak:latest \ | |
start-dev |
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
docker run --rm --name keycloak_auto_build -p 8080:8080 \ | |
-e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin \ | |
quay.io/keycloak/keycloak:latest \ | |
start \ | |
--auto-build \ | |
--db=dev-mem --hostname localhost:8080 --http-enabled true \ | |
--hostname-strict-https false |
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
KC_HOSTNAME=sso.domain.com | |
KC_HTTP_ENABLED=true | |
KEYCLOAK_ADMIN=m.akin | |
KEYCLOAK_ADMIN_PASSWORD=**** | |
DEBUG=true | |
DEBUG_PORT='*:8787' | |
KC_DB=postgres | |
#KC_DB_URL=jdbc:postgresql://host.docker.internal/ssodb | |
KC_DB_URL_HOST=host.docker.internal | |
KC_DB_URL_PORT=5432 | |
KC_DB_URL_DATABASE=ssodb | |
KC_DB_USERNAME=datadrop | |
KC_DB_PASSWORD=******* | |
TZ=Europe/Istanbul | |
#KC_LOG_LEVEL=DEBUG | |
KC_PROXY=edge | |
KC_HOSTNAME_STRICT=false | |
KC_HOSTNAME_STRICT=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment