Configuring Keycloak 'admin' Credentials

The Keycloak admin credentials are defined in the infrastructure Docker descriptor. It allows connecting to the master realm and changing the global Keycloak configuration.

To Configure Keycloak 'admin' Credentials

  1. Edit deployment/docker/infra/docker-compose.yml and change the KEYCLOAK_PASSWORD environment variable.

    keycloak:
        ...
        environment:
        - KEYCLOAK_USER=admin
        - KEYCLOAK_PASSWORD # Not specifying a value allow to transmit environment variable to the container.
        ...
  2. Edit the .env file placed in the docker-compose.yml parent folder and add an environment variable KEYCLOAK_PASSWORD with the password you have chosen. Note that you can also add the environment variable to the host machine.