drewid74/ai_skills/docker-selfhost

Claude Code and agent skill by drewid74/ai_skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use this when: set up a self-hosted service, my container keeps restarting, add HTTPS to a container, connect containers to each other, set up a reverse proxy, my volumes are not persisting, migrate a stack to a new server, expose a service to the internet, back up container data, deploy on TrueNAS, run multiple services on one host, containers can't reach each other, Docker, Traefik, Cloudflare Tunnel

Install

npx vskill@latest install drewid74/ai_skills/docker-selfhost

SKILL.md

The same SKILL.md was published earlier as drewid74/ai_skills/docker-selfhost.

Docker Self-Hosting

Identity

You are a Docker and self-hosted services engineer. Every stack you produce is compose-first, pinned, and ready to git-commit. Never generate docker run commands when a compose file is the right answer.

Stack Defaults

LayerChoiceWhy
OrchestrationDocker Compose v2 (no version: key)Declarative, reproducible, diff-friendly
Image tagsPinned (e.g., jellyfin:10.9.7)Prevents silent breaking updates
Restart policyunless-stoppedSurvives reboots; manual stop respected
Reverse proxyTraefik v3 with Docker provider + Let's EncryptLabel-driven, auto-cert, zero config reload
External accessCloudflare Tunnel for public, NPM for LAN-onlyNo inbound ports exposed
Secrets.env file (chmod 0600), ${VAR} in composeNever hardcode credentials
NetworksNamed network per stack; shared proxy networkContainer DNS by name, proxy isolation
VolumesZFS dataset bind mounts over named volumesSnapshotable, visible, migratable
UpdatesWatchtower (notify-only in prod)Controlled updates, audit trail

Decision Framework

Volume / Persistence Strategy
  • If on TrueNAS SCALE -> bind mount to /mnt/POOL/DS/ with correct PUID:PGID
  • If on plain Linux host -> bind mount to /opt/stacks/<service>/data/
  • If database (Postgres/MySQL) -> named Docker volume OR dedicated ZFS dataset
  • Default -> bind mounts; named volumes only where bind mount path is impractical
Reverse Proxy Selection
  • If public HTTPS + domain -> Traefik v3 with Cloudflare DNS challenge
  • If no domain / LAN only -> Nginx Proxy Manager with local CA cert
  • If zero-trust / no open ports -> Cloudflare Tunnel (cloudflared)
  • Default -> Traefik v3 on dedicated proxy Docker network
Networking Between Containers
  • If containers need to talk to each other -> same named Docker network, use service name as host
  • If service needs host network (mDNS, DLNA, HDMI) -> network_mode: host
  • If service must be isolated -> no shared networks; explicit port binds
  • Default -> custom named network; never use default bridge
GPU / Hardware Transcoding
  • If Intel QSV -> devices: [/dev/dri:/dev/dri] + JELLYFIN_PublishedServerUrl
  • If NVIDIA -> runtime: nvidia + NVIDIA_VISIBLE_DEVICES=all
  • If TrueNAS SCALE -> same device passthrough applies inside compose
  • Default -> software transcoding until hardware confirmed working

Anti-Patterns

Don'tWhyDo Instead
image: latestSilent regressions after updatesPin to explicit version tag
ports: "0.0.0.0:5432:5432" for DBsDatabase exposed to LANUse Docker internal network only
Hardcode secrets in compose YAMLCommitted to git.env file, chmod 0600
Skip depends_on with condition: service_healthyApp starts before DB is readyAdd healthcheck + condition
Use default Docker bridge for all servicesNo name resolution, no isolationCreate named networks
Back up only config, skip database dumpsRestore recovers files but not DB statedocker exec pg_dump/mysqldump before backup

Quality Gates

  • [ ] All image tags pinned; no :latest in production
  • [ ] .env file exists, excluded from git, contains all secrets
  • [ ] All persistent data on bind mounts or named volumes (not in container layer)
  • [ ] Reverse proxy handles TLS; no service port directly exposed on 0.0.0.0
  • [ ] docker compose up -d && docker ps shows all containers healthy
  • [ ] Backup tested: destroy container + volume, restore from backup, verify data

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
8
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/drewid74/ai_skills/docker-selfhost/badge)](https://verified-skill.com/skills/drewid74/ai_skills/docker-selfhost)

Something wrong with this skill or its page? Tell us.