From 14978b6de06177b3b81cb3e64de3e0a63228cc0d Mon Sep 17 00:00:00 2001 From: Phil Date: Sun, 15 Nov 2026 20:13:47 -0700 Subject: [PATCH] Dockge: bind port 5001 to the Tailscale IP only It was published on 0.0.0.0 and [::]; ufw-docker blocked it from the internet, but the other admin UIs already bind to network.docker_host_ip. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 2 +- roles/docker/README.md | 2 +- roles/docker/templates/dockge-compose.yml.j2 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 79b73f8..db72c0f 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -131,7 +131,7 @@ user (`vault_aws_dns`). It also deletes the records listed under - Caddy terminates TLS with Let's Encrypt. - `ufw-docker` makes UFW govern container ports. Only Caddy (80/443) and Gitea SSH (host port 222) are allowed in from the internet. -- Admin UIs (Syncthing, Cronmaster, Apprise, CouchDB) bind to the Tailscale IP only. +- Admin UIs (Dockge, Syncthing, Cronmaster, Apprise, CouchDB) bind to the Tailscale IP only. ### SSO (Pocket ID) Pocket ID (`id.thesatelliteoflove.com`) replaced Authentik on 2026-10-31. diff --git a/roles/docker/README.md b/roles/docker/README.md index 2e35183..146c04a 100644 --- a/roles/docker/README.md +++ b/roles/docker/README.md @@ -26,7 +26,7 @@ Tags: each category file has a category tag, each service its own tag. |---|---|---| | `caddy` | Caddy | Fixed IP 172.20.0.5. Ports 80/443 (+443/udp). `Caddyfile.j2` changes restart it via a handler; the stack itself is deployed with `recreate: never`. Static sites are served from `/opt/stacks/caddy/site/`. | | `pocketid` | Pocket ID v2 | Passkey OIDC provider at `id.`. OIDC clients are created in its web UI; their IDs and secrets go in the vault. | -| `dockge` | Dockge | Compose UI on port 5001, managing `/opt/stacks`. | +| `dockge` | Dockge | Compose UI on port 5001 (Tailscale IP only), managing `/opt/stacks`. | ### Development (`development`) | Tag | Service | Notes | diff --git a/roles/docker/templates/dockge-compose.yml.j2 b/roles/docker/templates/dockge-compose.yml.j2 index 97a428d..a4d40c1 100644 --- a/roles/docker/templates/dockge-compose.yml.j2 +++ b/roles/docker/templates/dockge-compose.yml.j2 @@ -4,7 +4,7 @@ services: restart: unless-stopped ports: # Host Port : Container Port - - 5001:5001 + - "{{ network.docker_host_ip }}:5001:5001" # Tailscale only volumes: - /var/run/docker.sock:/var/run/docker.sock - ./data:/app/data