fix(compose): mount the host bedrock config, not the container path

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 <noreply@anthropic.com>
This commit is contained in:
Sergey Kozyrenko
2026-07-27 14:48:03 +07:00
co-authored by Claude Opus 5
parent 73fb0abd94
commit afd621ba8e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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
```
+1 -1
View File
@@ -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: