6.2. Keycloak Dev Services configuration
🔒 Fixed at build time - Configuration property fixed at build time - All other configuration properties are overridable at runtime
| Configuration property | Type | Default |
|
🔒 Fixed at build time Flag to enable (default) or disable Dev Services. When enabled, Dev Services for Keycloak automatically configures and starts Keycloak in Dev or Test mode, and when Docker is running.
Environment variable: | boolean |
|
|
🔒 Fixed at build time
The container image name for Dev Services providers. Defaults to a Quarkus-based Keycloak image. For a WildFly-based distribution, use an image like
Environment variable: | string |
|
|
🔒 Fixed at build time
Indicates if a Keycloak-X image is used. By default, the image is identified by
Environment variable: | boolean | |
|
🔒 Fixed at build time
Determines if the Keycloak container is shared. When shared, Quarkus uses label-based service discovery to find and reuse a running Keycloak container, so a second one is not started. Otherwise, if a matching container is not is found, a new container is started. The service discovery uses the
Environment variable: | boolean |
|
|
🔒 Fixed at build time
The value of the
Environment variable: | string |
|
|
🔒 Fixed at build time A comma-separated list of class or file system paths to Keycloak realm files. This list is used to initialize Keycloak. The first value in this list is used to initialize default tenant connection properties. To learn more about Keycloak realm files, consult the Importing and Exporting Keycloak Realms documentation.
Environment variable: | list of string | |
|
🔒 Fixed at build time Aliases to additional class or file system resources that are used to initialize Keycloak. Each map entry represents a mapping between an alias and a class or file system resource path.
Environment variable: | Map<String,String> | |
|
🔒 Fixed at build time Additional class or file system resources that are used to initialize Keycloak. Each map entry represents a mapping between a class or file system resource path alias and the Keycloak container location.
Environment variable: | Map<String,String> | |
|
🔒 Fixed at build time
The
Environment variable: | string | |
|
🔒 Fixed at build time Show Keycloak log messages with a "Keycloak:" prefix.
Environment variable: | boolean |
|
|
🔒 Fixed at build time
Keycloak start command. Use this property to experiment with Keycloak start options, see
Environment variable: | string | |
|
🔒 Fixed at build time
Keycloak features. Use this property to enable one or more experimental Keycloak features. Note, if you also have to customize a Keycloak
Environment variable: | list of string | |
|
🔒 Fixed at build time
The name of the Keycloak realm. This property is used to create the realm if the realm file pointed to by the
Environment variable: | string | |
|
🔒 Fixed at build time
Specifies whether to create the Keycloak realm when no realm file is found at the
Environment variable: | boolean |
|
|
🔒 Fixed at build time
Specifies whether to create the default client id
Environment variable: | boolean |
|
|
🔒 Fixed at build time Specifies whether to start the container even if the default OIDC tenant is disabled. Setting this property to true may be necessary in a multi-tenant OIDC setup, especially when OIDC tenants are created dynamically.
Environment variable: | boolean |
|
|
🔒 Fixed at build time
A map of Keycloak usernames to passwords. If empty, default users
Environment variable: | Map<String,String> | |
|
🔒 Fixed at build time
A map of roles for Keycloak users. If empty, default roles are assigned:
Environment variable: | Map<String,List<String>> | |
|
🔒 Fixed at build time The specific port for the dev service to listen on. If not specified, a random port is selected.
Environment variable: | int | |
|
🔒 Fixed at build time Environment variables to be passed to the container.
Environment variable: | Map<String,String> | |
|
🔒 Fixed at build time Memory limit for Keycloak container If not specified, 1250MiB is the default memory limit.
Environment variable: | MemorySize ℹ️ MemorySize format |
|
|
🔒 Fixed at build time The WebClient timeout. Use this property to configure how long an HTTP client used by OIDC dev service admin client will wait for a response from OpenId Connect Provider when acquiring admin token and creating realm.
Environment variable: |
|
To write duration values, use the standard java.time.Duration format. See the Duration#parse() Java API documentation for more information.
You can also use a simplified format, starting with a number:
- If the value is only a number, it represents time in seconds.
-
If the value is a number followed by
ms, it represents time in milliseconds.
In other cases, the simplified format is translated to the java.time.Duration format for parsing:
-
If the value is a number followed by
h,m, ors, it is prefixed withPT. -
If the value is a number followed by
d, it is prefixed withP.
A size configuration option recognizes strings in this format (shown as a regular expression): [0-9]+[KkMmGgTtPpEeZzYy]?.
If no suffix is given, assume bytes.