mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-03-23 12:39:24 -07:00
- Add .windsurf/, *.bak*, .1code/, .emdash.json to .gitignore - Sync standard gitignore entries per project conventions - Apply final test/tool fixes from CodeRabbit review threads - Update GraphQL schema to latest introspection snapshot - Bump version 0.2.0 → 0.2.1 Co-authored-by: Claude <noreply@anthropic.com>
44 lines
1.7 KiB
YAML
44 lines
1.7 KiB
YAML
services:
|
|
unraid-mcp:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: unraid-mcp
|
|
restart: unless-stopped
|
|
read_only: true
|
|
cap_drop:
|
|
- ALL
|
|
tmpfs:
|
|
- /tmp:noexec,nosuid,size=64m
|
|
- /app/logs:noexec,nosuid,size=16m
|
|
ports:
|
|
# HostPort:ContainerPort (maps to UNRAID_MCP_PORT inside the container, default 6970)
|
|
# Change the host port (left side) if 6970 is already in use on your host
|
|
- "${UNRAID_MCP_PORT:-6970}:${UNRAID_MCP_PORT:-6970}"
|
|
environment:
|
|
# Core API Configuration (Required)
|
|
- UNRAID_API_URL=${UNRAID_API_URL:?UNRAID_API_URL is required}
|
|
- UNRAID_API_KEY=${UNRAID_API_KEY:?UNRAID_API_KEY is required}
|
|
|
|
# MCP Server Settings
|
|
- UNRAID_MCP_PORT=${UNRAID_MCP_PORT:-6970}
|
|
- UNRAID_MCP_HOST=${UNRAID_MCP_HOST:-0.0.0.0}
|
|
- UNRAID_MCP_TRANSPORT=${UNRAID_MCP_TRANSPORT:-streamable-http}
|
|
|
|
# SSL Configuration
|
|
- UNRAID_VERIFY_SSL=${UNRAID_VERIFY_SSL:-true}
|
|
|
|
# Logging Configuration
|
|
- UNRAID_MCP_LOG_LEVEL=${UNRAID_MCP_LOG_LEVEL:-INFO}
|
|
- UNRAID_MCP_LOG_FILE=${UNRAID_MCP_LOG_FILE:-unraid-mcp.log}
|
|
|
|
# Real-time Subscription Configuration
|
|
- UNRAID_AUTO_START_SUBSCRIPTIONS=${UNRAID_AUTO_START_SUBSCRIPTIONS:-true}
|
|
- UNRAID_MAX_RECONNECT_ATTEMPTS=${UNRAID_MAX_RECONNECT_ATTEMPTS:-10}
|
|
|
|
# Optional: Custom log file path for subscription auto-start diagnostics
|
|
- UNRAID_AUTOSTART_LOG_PATH=${UNRAID_AUTOSTART_LOG_PATH}
|
|
# Optional: If you want to mount a specific directory for logs (ensure UNRAID_MCP_LOG_FILE points within this mount)
|
|
# volumes:
|
|
# - ./logs:/app/logs # Example: maps ./logs on host to /app/logs in container
|