docker-compose.yaml
- Last Updated: December 3, 2026
- 2 minute read
- Documentation
The docker-compose.yaml file defines the MarkLogic MCP Server container and the settings Docker Compose uses to start it.
Example docker-compose.yaml
This example file is included in the examples/marklogic-mcp directory of the deployment package:
name: marklogic-mcp
services: marklogic-mcp: image: ${MARKLOGIC_MCP_IMAGE:-marklogic/marklogic-mcp:local} platform: linux/amd64 cap_drop: - ALL security_opt: - no-new-privileges:true ports: - "8088:8080" environment: - agents_config=/app/mra/config.yaml - load_modules=["hyperforge_passthrough","mra_agent"] env_file: - .env volumes: - ./config.yaml:/app/mra/config.yaml:ro extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped
Docker Compose settings
This table describes the settings in docker-compose.yaml. Unless otherwise noted, leave the settings unchanged:
docker-compose.yaml file:
| Property | Description |
|---|---|
name |
Sets the Compose project name to marklogic-mcp. |
services.marklogic-mcp.image |
Sets the image to the value of the MARKLOGIC_MCP_IMAGE environment variable or uses marklogic/marklogic-mcp:local if MARKLOGIC_MCP_IMAGE is not set.To change the image, set the MARKLOGIC_MCP_IMAGE environment variable. |
services.marklogic-mcp.platform |
Sets the container platform to linux/amd64. |
services.marklogic-mcp.cap_drop |
Drops all Linux capabilities from the container. |
services.marklogic-mcp.security_opt |
Sets no-new-privileges:true to prevent processes in the container from gaining additional privileges. |
services.marklogic-mcp.ports |
Maps host port 8088, which MCP clients use to connect to MarkLogic MCP Server, to port 8080 inside the container.To use a different host port, change 8088 but leave the container port set to 8080. |
services.marklogic-mcp.environment.agents_config |
Sets the location of the MarkLogic MCP Server config.yaml file inside the container to /app/mra/config.yaml. |
services.marklogic-mcp.environment.load_modules |
Specifies the modules loaded when MarkLogic MCP Server starts: hyperforge_passthrough and mra_agent. |
services.marklogic-mcp.env_file |
Adds the variables defined in .env to the container's environment. |
services.marklogic-mcp.volumes |
Mounts config.yaml from the Compose project directory at /app/mra/config.yaml inside the container as read-only. |
services.marklogic-mcp.extra_hosts |
Maps host.docker.internal to the host gateway so that the container can reach services running on the host. |
services.marklogic-mcp.restart |
Restarts the container unless you stop it manually. |