Coder Social home page Coder Social logo

keycloak's Introduction

DemocracyOS Docker Keycloak Image

This is DemocracyOS official Keycloak Docker image for development. It's based on Keycloak Official Docker Image, starting with 4.4.0.Final version.

Quickstart


Pull this image

$ sudo docker pull democracyos/keycloak:4.4.0

Start keycloak

Nice to read multiline

$ sudo docker run -d --name keycloak \
                  -p 8080:8080 \
                  -e "KEYCLOAK_USER=democracyos" \
                  -e "KEYCLOAK_PASSWORD=democracyos" \
                  -e "KEYCLOAK_WELCOME_THEME=democracyos" \
                  democracyos/keycloak:4.4.0.Final

Copy & Paste friendly one-liner

$ sudo docker run -d --name keycloak -p 8080:8080 -e "KEYCLOAK_USER=democracyos" -e "KEYCLOAK_PASSWORD=democracyos" -e "KEYCLOAK_WELCOME_THEME=democracyos" democracyos/keycloak:4.4.0.Final

Access Keycloak

Browse to http://localhost:8080 and go to Administration Console. Keycloak landing

Login with user: democracyos and password: democracyos. Keycloak login

Set DemocracyOS theme Keycloak theme configuration

Customize DemocracyOS theme


Themes are built with Apache FreeMarker. This keycloak docker installation is configured to instantly reflect changes in theme files for development purposes. More on this in the Official Documentation.

To live edit DemocracyOS, with this repository files please run:

Nice to read multiline

$ sudo docker run -d --name keycloak \
                  -p 8080:8080 \
                  -e "KEYCLOAK_USER=democracyos" \
                  -e "KEYCLOAK_PASSWORD=democracyos" \
                  -e "KEYCLOAK_WELCOME_THEME=democracyos" \
                  -v $(pwd)/democracyos:/opt/jboss/keycloak/democracyos:rw
                  democracyos/keycloak:4.4.0.Final

Copy & Paste friendly one-liner

$ sudo docker run -d --name keycloak -p 8080:8080 -e "KEYCLOAK_USER=democracyos" -e "KEYCLOAK_PASSWORD=democracyos" -e "KEYCLOAK_WELCOME_THEME=democracyos" -v $(pwd)/democracyos:/opt/jboss/keycloak/democracyos:rw democracyos/keycloak:4.4.0.Final

Docker Image files

DemocracyOS theme files are inside democracyos/ directory while custom configurations reside in customization directory. All content is copied during docker build.

Docker Environment Variables


As seen in Start Keycloak section, some variables are needed to bootstrap Keycloak. As this is an extension of the official Docker image we recommend reading through the Official Docker Image Documentation. Variables shown here are:

  • KEYCLOAK_USER: set keycloak admin user. There's no default value, if it is not set then direct access to container shell is needed to use kcadm.
  • KEYCLOAK_PASSWORD: set keycloak admin user password. There's no default value, if it is not set then direct access to container shell is needed to use kcadm.
  • KEYCLOAK_WELCOME_THEME: specify the theme to use for welcome page (must be non empty and must match an existing theme name).

keycloak's People

Contributors

luarar avatar franciclo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.