unraid-mcp/docker-compose.yaml

41 lines
942 B
YAML

services:
unraid-mcp:
build: .
container_name: unraid-mcp
restart: unless-stopped
user: "${PUID:-1000}:${PGID:-1000}"
ports:
- "${UNRAID_MCP_PORT:-6970}:${UNRAID_MCP_PORT:-6970}"
env_file:
- ~/.claude-homelab/.env
volumes:
- ./logs:/app/logs
- ./backups:/app/backups
- unraid-mcp-credentials:/home/mcp/.unraid-mcp
networks:
- jakenet
deploy:
resources:
limits:
memory: 1024M
cpus: "1.0"
healthcheck:
test:
- "CMD-SHELL"
- |
if [ "${UNRAID_MCP_TRANSPORT:-streamable-http}" = "stdio" ]; then
exit 0
fi
wget -qO- "http://localhost:${UNRAID_MCP_PORT:-6970}/health" > /dev/null
interval: 30s
timeout: 5s
start_period: 30s
retries: 3
volumes:
unraid-mcp-credentials:
networks:
jakenet:
name: ${DOCKER_NETWORK:-jakenet}
external: true