adorsys / adorsys/keycloak-config-cli

Documentation for environment variables when using Docker Compose

未關閉 適合新手
#1,657 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Java
星號
1.2k
分支
201
PR 合併指標
30 天內沒有已合併 PR

描述

### 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_

貢獻指南

開啟貢獻指南

研究方向

No file is named. Start by reading the CLI Reference and Docker image documentation in the repository, then find where environment-variable/JAR examples are documented. Extend that section with a Docker Compose + env_file example showing how to set CLIENT_REDIRECT_URIS and similar array fields. Done when docs clearly show expected syntax/behavior so array fields import as JSON arrays instead of a single string.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
docker-compose
領域
documentation
Issue 類型
文件
難度
2/5
預估耗時
1-3 小時
活躍度
冷清
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。