adorsys / adorsys/keycloak-config-cli

Documentation for environment variables when using Docker Compose

Open
#1,657 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
200
PR merge metrics
No merged PRs in 30d

Description

### Documentation Type

CLI Reference

### Issue Type

Missing information

### Current Documentation Issue

I'm using keycloak-config-cli via Docker Compose and I'm having trouble using environment variables for JSON array fields (e.g. redirectUris, webOrigins).

The documentation shows how to use environment variables and JavaScript substitution when running the JAR directly, but it's unclear how this should work when using the Docker image with docker-compose and env_file.

For example, I have:
`CLIENT_REDIRECT_URIS=http://localhost:3000/api/auth/callback/keycloak,http://localhost:3001/api/auth/callback/keycloak`

and I'm trying to populate:
`"redirectUris": [...]`

However, the value is imported as a single string instead of being expanded into a JSON array.

Is there a supported way to "spread" or convert an environment variable into a JSON array when using the Docker image? It would be helpful if the documentation included a Docker/Docker Compose example for this use case, since the current examples only cover running the CLI as a JAR.

### Proposed Improvement

_No response_

### Target Audience

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.