Files
unifi-mcp-light/docker-compose.yml
Ben 487f5355a0
All checks were successful
Build and Push Docker Image / build (push) Successful in 15s
Fix UniFi OS authentication and simplify server architecture
- Use /api/auth/login for UniFi OS controllers (UDM, Cloud Gateway)
- Use /api/login for standalone controllers
- Refactor to use FastMCP's native mcp.run() with custom_route for /health
- Switch to network_mode: host for local network access
- Include README.md in Dockerfile for hatchling build
2026-01-02 02:49:43 +00:00

24 lines
746 B
YAML

services:
unifi-mcp-light:
build: .
image: gitea.ext.ben.io/b3nw/unifi-mcp-light:latest
container_name: unifi-mcp-light
restart: unless-stopped
network_mode: host
environment:
- UNIFI_HOST=${UNIFI_HOST}
- UNIFI_USERNAME=${UNIFI_USERNAME}
- UNIFI_PASSWORD=${UNIFI_PASSWORD}
- UNIFI_PORT=${UNIFI_PORT:-443}
- UNIFI_SITE=${UNIFI_SITE:-default}
- UNIFI_VERIFY_SSL=${UNIFI_VERIFY_SSL:-false}
- UNIFI_ALLOW_WRITES=${UNIFI_ALLOW_WRITES:-false}
env_file:
- .env
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s