From afd621ba8e04ee9697f4f175687ef76090ea7ea2 Mon Sep 17 00:00:00 2001 From: Sergey Kozyrenko Date: Mon, 27 Jul 2026 14:48:03 +0700 Subject: [PATCH] fix(compose): mount the host bedrock config, not the container path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bind source read `BEDROCK_CONFIG_PATH`, which by its own documentation is the in-container path — so following the README produced `source: /opt/pentagi/conf/bedrock.provider.yml` on the host, which Docker creates as an empty directory. Read `PENTAGI_BEDROCK_CONFIG_PATH` like the custom and ollama mounts above it. `docker compose config` now resolves the source to the YAML in examples/. The README also promised two override paths where there is one. Co-Authored-By: Claude Opus 5 --- README.md | 6 +++--- docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 44e6cf11..f9b315d9 100644 --- a/README.md +++ b/README.md @@ -1943,7 +1943,7 @@ PROXY_URL=http://your-proxy:8080 #### Custom Provider Config and Models (advanced) -By default the Bedrock provider uses a per-agent config and model catalog compiled into the binary. Two optional paths override them without rebuilding: +By default the Bedrock provider uses a per-agent config and model catalog compiled into the binary. One optional path overrides them without rebuilding: - `BEDROCK_CONFIG_PATH` — a YAML file (same shape as the other provider configs) that **replaces** the built-in per-agent model/price assignments. See [`examples/configs/bedrock-glm-flash.provider.yml`](examples/configs/bedrock-glm-flash.provider.yml). @@ -1952,9 +1952,9 @@ This is useful to expose a Bedrock model newer than the compiled-in catalog — With Docker Compose, set the host-side mount source and the in-container path together: ```bash -# host files mounted into the container +# host file mounted into the container at /opt/pentagi/conf/bedrock.provider.yml PENTAGI_BEDROCK_CONFIG_PATH=./examples/configs/bedrock-glm-flash.provider.yml -# tell the backend to read the mounted files +# tell the backend to read the mounted file BEDROCK_CONFIG_PATH=/opt/pentagi/conf/bedrock.provider.yml ``` diff --git a/docker-compose.yml b/docker-compose.yml index cb5f26ce..790d219e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -190,7 +190,7 @@ services: - ${PENTAGI_DOCKER_SOCKET:-/var/run/docker.sock}:/var/run/docker.sock - ${PENTAGI_LLM_SERVER_CONFIG_PATH:-./example.custom.provider.yml}:/opt/pentagi/conf/custom.provider.yml - ${PENTAGI_OLLAMA_SERVER_CONFIG_PATH:-./example.ollama.provider.yml}:/opt/pentagi/conf/ollama.provider.yml - - ${BEDROCK_CONFIG_PATH:-./example.bedrock.provider.yml}:/opt/pentagi/conf/bedrock.provider.yml + - ${PENTAGI_BEDROCK_CONFIG_PATH:-./example.bedrock.provider.yml}:/opt/pentagi/conf/bedrock.provider.yml - ${PENTAGI_DOCKER_CERT_PATH:-./docker-ssl}:/opt/pentagi/docker/ssl user: root:root # while using docker.sock networks: