Skip to content

Commit d246fee

Browse files
mabuyoDaleSeo
authored andcommitted
fix: need to mount config file in docker run
1 parent 880cc1a commit d246fee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/deploy.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ docker run \
2828
--env APOLLO_GRAPH_REF="<your-graph-ref>" \
2929
--env APOLLO_KEY="<your-graph-api-key>" \
3030
--env MCP_ENABLE=1 \
31+
-m /path/to/config:/config/mcp_config.yaml \
3132
--rm \
3233
ghcr.io/apollographql/apollo-runtime:latest
3334
```
@@ -36,12 +37,11 @@ When you run this, it will:
3637

3738
- Fetch your schema from GraphOS using your graph credentials (`APOLLO_GRAPH_REF` and `APOLLO_KEY`)
3839
- Start the Apollo Router with your graph configuration
40+
- Provides a configuration file for the MCP server by mounting it to `config/mcp_config.yaml`
3941
- Enable the Apollo MCP Server endpoint at `/mcp`
4042

4143
This command uses GraphOS-managed persisted queries for MCP tools. You'll need to publish your operations to the [GraphOS-managed persisted queries list](/apollo-mcp-server/define-tools#from-graphos-managed-persisted-queries). If you want to use other methods for defining MCP tools, see the [Define MCP Tools](/apollo-mcp-server/define-tools) page.
4244

43-
You can provide a configuration file for the MCP server in `config/mcp_config.yaml`. The container will automatically use this file if it exists.
44-
4545
To learn more, see the [Apollo Runtime Container documentation](/graphos/routing/self-hosted/containerization/docker).
4646

4747
## Standalone Apollo MCP Server container

0 commit comments

Comments
 (0)