/docker:npm-reverse-proxyfrom docker
Set up and manage domain routing for homelab services using nginx-proxy-manager (NPM) driven by Docker container labels via npm-docker-sync. Load this when the user wants to expose a container/stack at a domain, debug why a service isn't routing, or understand the label-based proxy-host automation pattern. Covers the npm.* label scheme, how sync maps containers to NPM proxy hosts, and SSL/forced-host details.
Ships in docker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This homelab routes domains to containers using nginx-proxy-manager (NPM) as the reverse proxy, with
Redth/npm-docker-sync (https://github.com/Redth/npm-docker-sync) watching Docker container labels and
auto-creating/updating the matching NPM proxy hosts. Obey
the homelab-core:homelab-safety skill. This is the maintainer's own tool —
treat its repo/README as canonical and verify the exact label keys there (homelab-research), since they may
evolve.
npm MCP serverThis plugin ships its own MCP server (built in this repo, src/NpmMcp, distributed as a Native AOT binary —
no runtime needed). When it's configured (set NPM_URL, NPM_EMAIL, NPM_PASSWORD, and NPM_VERIFY_SSL=0
for self-signed certs — see the plugin .mcp.json), prefer its tools for inspecting and changing NPM
directly:
npm_list_proxy_hosts, npm_get_proxy_host — see what's routed (read).npm_debug_routing <domain> — the fastest way to debug "why isn't this routing": it finds the matching
proxy/redirect host and reports upstream host:port, enabled/SSL state, and cert, with a triage checklist.npm_list_certificates / npm_get_certificate — find a certificate_id, spot expiring certs.npm_list_redirection_hosts, npm_get_redirection_host — inspect redirects.npm_create_proxy_host, npm_update_proxy_host, npm_enable/disable/delete_proxy_host — changes; these
are significant/destructive, so apply the homelab-core:homelab-safety gate (summarize + confirm) first.Note the two complementary approaches: npm-docker-sync keeps routing declarative in the container labels
(the steady-state pattern below), while the npm MCP tools let you inspect and make direct/ad-hoc NPM
changes and debug routing. For label-managed hosts, prefer fixing the labels + re-syncing over hand-editing
via the API, to avoid drift.
container (with npm.* labels) ──► npm-docker-sync (reads labels, calls NPM API) ──► NPM proxy host ──► service reachable at https://<domain>
To expose a service you usually don't click around the NPM UI — you add labels to the container/service in its compose file, and sync reconciles NPM to match. This keeps routing declarative and in the compose definition alongside the service.
Typical labels (confirm names/format in the repo — this is the shape, not a frozen spec):
services:
myapp:
image: ...
labels:
- "npm.proxy.domains=app.example.com" # one or more hostnames to route
- "npm.proxy.ssl_force=true" # force HTTPS / request a cert
- "npm.proxy.block_exploits=true" # NPM "block common exploits"
# port is often auto-detected from EXPOSE / container; an explicit override label may exist
npm-docker-sync is configured with how to reach NPM: NPM_URL, NPM_EMAIL, NPM_PASSWORD, and the NPM
container name (NPM_CONTAINER_NAME) so it can resolve the upstream. It needs Docker socket access to read
labels. Never commit those credentials.
npm.* labels to the service in its compose/stack (via the control plane — Dockhand/Portainer/
Dockge as appropriate). Show the diff.https://<domain> reaches the
service. Don't assume — check.Work the chain end to end:
npm.* labels present and correctly formatted on the running container? (docker inspect)npm-docker-sync running, can it see the Docker socket, and are its NPM creds valid? Check its
logs.docker-on-proxmox for network/VLAN reachability.reference/npm-labels.md for the label list and an example service. Always
reconcile against the npm-docker-sync README for current label keys.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/docker-compose-stacksShared foundational knowledge for working with Docker Compose stacks — the compose file format, services/networks/volumes/secrets, environment and .env handling, healthchecks, common operations (up/down/pull/logs/ps), and safe-change practices. Load this for any compose-based work, alongside the control-plane skill (Dockhand/Portainer/Dockge) that actually applies the changes./docker-on-proxmoxUnderstand and troubleshoot a Docker host running inside Proxmox — as a VM or as a privileged/unprivileged LXC — and how VLAN networking, macvlan/ipvlan, VLAN-aware bridges, and passed-through/bind-mounted storage interact across the Proxmox and Docker layers. Load this when a Docker networking or storage problem may originate at the Proxmox layer, or when planning how to host Docker on Proxmox./Other plugins' skills for the same job
npx claudepluginhub redth/homelab-assist --plugin docker