diff --git a/opencode/compose.yaml b/opencode/compose.yaml index a9d2b60..d53d59b 100644 --- a/opencode/compose.yaml +++ b/opencode/compose.yaml @@ -9,13 +9,14 @@ services: command: - | command -v git >/dev/null 2>&1 || apk add --no-cache git - exec opencode web --port 4096 --hostname 0.0.0.0 --print-logs --log-level DEBUG + exec opencode web --port 4096 --hostname 0.0.0.0 --print-logs --log-level "$${LOG_LEVEL}" environment: - HOME=/root/workspaces - XDG_CONFIG_HOME=/root/.config - XDG_DATA_HOME=/root/.local/share - XDG_STATE_HOME=/root/.local/state - XDG_CACHE_HOME=/root/.cache + - LOG_LEVEL=${LOG_LEVEL:-INFO} - OPENCODE_SERVER_PASSWORD=${OPENCODE_PASSWORD:?error_OPENCODE_PASSWORD_is_required} - OPENCODE_SERVER_USERNAME=${OPENCODE_USERNAME:-opencode} - GIT_AUTHOR_NAME=${GIT_USER_NAME:-OpenCode Agent}