Skip to main content
Version: 2.2.0

Keycloak Container Configuration

This section explained the environment variables used in the Docker Compose configuration file to initialize IAMS-Keycloak.

For the full list of available environment variables, please refer to official Keycloak Documentation: https://www.keycloak.org/server/all-config

Environment VariableDescription
KC_BOOTSTRAP_ADMIN_USERNAMEThe username of the default bootstrap administrator.
KC_BOOTSTRAP_ADMIN_PASSWORDThe password of the default administrator.
KC_DBThe database type to be used to store the data. Default value is postgres. Change this value if you wish to use other database.
KC_DB_URL_DATABASEThe name of the database to use. The default value match the iams.
KC_DB_USERNAMEThe username of the database user.
KC_DB_PASSWORDThe password of the database user.
KC_DB_URL_HOSTThe host URL of the database.
KC_DB_URL_PORTThe port number to access the database.
KC_HTTP_ENABLEDEnable HTTP. The default value allow iams-keycloak to be access via HTTP.
KC_HOSTNAMEThe URL to access the iams-keycloak.
KC_HOSTNAME_BACKCHANNEL_DYNAMICWhether to allow the backchannel URL to be the same as the frontchannel URL (URL specified in KC_HOSTNAME). The backchannel is used by IAMS-AAS to communicate with IAMS-Keycloak. This value should set to true.
KC_HTTP_PORTThe HTTP port number to use.
KC_HEALTH_ENABLEDWhether to enable the liveness and readiness probe endpoints. This value should set to true.
KC_PROXY_HEADERSThe proxy headers that should be accepted by the server. Value depend on whether proxy/ingress being used.

The following environment variables are used by the Docker Compose file and not defined by Keycloak:

Environment VariableDescription
DEFAULT_REALMThe name of the realm to be created during initialization. It will override the realm name value in the realm-import.json file.
DEV_DOMAINTo override the URL values in realm-import.json
DEV_USERTo override the username of the default system admin in realm-import.json
DEV_PASSWORDTo override the password of the default system admin in realm-import.json