services: danbooru-mcp: build: https://git.liveaodh.com/aodhan/danbooru-mcp.git image: danbooru-mcp:latest stdin_open: true restart: unless-stopped app: build: . ports: - "5782:5000" environment: # ComfyUI runs on the Docker host COMFYUI_URL: http://10.0.0.200:8188 # Compose manages danbooru-mcp — skip the app's auto-start logic SKIP_MCP_AUTOSTART: "true" # Enable debug logging FLASK_DEBUG: "1" LOG_LEVEL: "DEBUG" volumes: # Persistent data - ./data:/app/data - ./static/uploads:/app/static/uploads - ./instance:/app/instance - ./flask_session:/app/flask_session # Model files (read-only — used for checkpoint/LoRA scanning) - /Volumes/ImageModels:/ImageModels:ro # Docker socket so the app can run danbooru-mcp tool containers - /var/run/docker.sock:/var/run/docker.sock extra_hosts: # Resolve host.docker.internal on Linux hosts - "host.docker.internal:host-gateway" depends_on: - danbooru-mcp restart: unless-stopped