You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README with Docker usage instructions and environment variables (#64)
* docs: update README with Docker usage instructions and environment variables
* docs: enhance README with new Docker usage instructions and multi-arch image details
* docs: fix PyPI badge label in README
* chore: remove mock-weather-mcp-server from .dockerignore
* feat: add labels to Dockerfile and workflow for better image metadata
This uses the included [docker-compose.yml](./docker-compose.yml) file which:
99
-
- Builds the bridge from source using this Dockerfile[Dockerfile](./Dockerfile)
100
+
- Builds the bridge from source using the[Dockerfile](./Dockerfile)
100
101
- Connects to Ollama running on the host machine (`host.docker.internal:11434`)
101
102
- Maps the configuration file from [./mcp-config.json](./mcp-config.json) (includes mock [weather server for demo](./mock-weather-mcp-server))
103
+
- Exposes port `8000` on the host
102
104
- Allows all CORS origins (configurable via `CORS_ORIGINS` environment variable)
103
105
- Supports configurable Ollama request timeouts via `OLLAMA_PROXY_TIMEOUT`
104
106
107
+
> [!TIP]
108
+
> To skip the local build and use the pre-built image from GitHub Container Registry instead, replace the `build:` block in `docker-compose.yml` with:
109
+
> ```yaml
110
+
> image: ghcr.io/jonigl/ollama-mcp-bridge:latest
111
+
> ```
112
+
113
+
### Or, run with Docker only
114
+
115
+
> [!NOTE]
116
+
> ✨ **NEW**: Pre-built multi-arch Docker images (`linux/amd64` and `linux/arm64`) are now published automatically to the GitHub Container Registry on every release. No local build required!
117
+
118
+
Pre-built multi-arch images (`linux/amd64` and `linux/arm64`) are published to the [GitHub Container Registry](https://github.com/jonigl/ollama-mcp-bridge/pkgs/container/ollama-mcp-bridge) on every release. Available tags:
- `-p 8000:8000`— exposes the bridge on your host at port `8000`
134
+
- `-e OLLAMA_URL=http://host.docker.internal:11434`— routes Ollama traffic to the host machine (required on macOS and Windows; on Linux use `--network host` or the host's IP instead)
135
+
- `-v "$PWD/mcp-config.json:/mcp-config.json"`— mounts your local config into the container
136
+
- `-v "$PWD/mock-weather-mcp-server:/mock-weather-mcp-server"`— mounts the mock MCP server **without** `:ro` so `uv` can create its `.venv` inside the directory
137
+
- `-w /`— sets the working directory to `/` so relative paths in `mcp-config.json` resolve correctly
138
+
139
+
> [!NOTE]
140
+
> On Linux, `host.docker.internal` may not resolve automatically. Use `--network host` and keep `OLLAMA_URL=http://localhost:11434`, or replace it with your host's LAN IP.
0 commit comments