agentleFS
thienanblogthienanblog/awesome-ai-agent-skills/skills/vps-docker-traefik-deploy/SKILL.md

vps-docker-traefik-deploy

Skill68 starsChanged 7 months agoApache-2.0View on GitHub

Prepare or operate production Docker Compose deployments on a VPS with Traefik, DNS, registries, persistent storage, backups, and rollback. Use for production infrastructure and releases, rather than local development.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run in the main conversation by default.

    line 12
  2. Distinctive:

    Read existing runbooks, Compose and Traefik configuration, release scripts, and available host evidence.

    line 16
  3. Distinctive:

    Use authorization already granted for the named environment and action.

    line 22
  4. Distinctive:

    Keep databases, caches, registry/admin dashboards, and internal app ports private by default.

    line 23
  5. Distinctive:

    Keep credentials out of images, source, logs, and reports.

    line 24
  6. Very specific:

    Use immutable image tags or digests and retain the prior release.

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

VPS Docker Traefik Deploy

Deliver the requested deployment work using the project's operating contract. Distinguish planning and file preparation from changing a live environment.

Delegation

Run in the main conversation by default. Delegation can increase usage: obtain explicit approval for the proposed agent count and scope before using subagents. Reuse that approval within its bounds; ask again before expanding the approved count or scope.

Establish the target

Read existing runbooks, Compose and Traefik configuration, release scripts, and available host evidence. Establish the target host, OS, domains, ingress, registry, persistent data, backup/restore expectations, and deployment authorization. Discover facts before asking; for a routine release the existing runbook and configuration usually answer them.

For an existing deployment, preserve supported topology and required release gates. For a new one, prefer a supported Ubuntu LTS or Debian stable host, an operator account with appropriate privileges, registry-built immutable images, and Traefik ingress. Verify current official installation guidance when provisioning; reference commands are examples, not a reason to reinstall a working host.

Keep production boundaries explicit

  • Use authorization already granted for the named environment and action. Prepare configuration, diffs, checks, and rollback before asking for any missing live-operation approval. Ask about a new destructive migration or exposure outside that scope.
  • Keep databases, caches, registry/admin dashboards, and internal app ports private by default. Expose only needed ingress and operator access, commonly SSH, HTTP/ACME, and HTTPS. Use loopback bindings and SSH tunnels for private operator tools when suitable.
  • Keep credentials out of images, source, logs, and reports. Preserve persistent state outside container writable layers.
  • Use immutable image tags or digests and retain the prior release. Avoid server-side rebuilds and mutable latest references for releases unless the established operating contract provides equivalent reproducibility.
  • Address backup and rollback for affected persistent state. A container rollback cannot undo an incompatible database migration; establish the recovery path before applying it.

Prepare, deploy, verify

Choose only the references needed for the work:

WorkReference
New host, operator access, SSH/firewall, Dockerserver-baseline.md
Traefik, TLS, DNS, dashboard accesstraefik-dns.md
Registries, persistence, capacity, backup and restoreregistry-storage-backup.md
Rollout, health, rollback, maintenancedeploy-checklist.md

Validate the effective configuration without exposing secrets, confirm image availability and recovery readiness, then execute the authorized rollout. Verify container health, public routes/TLS, logs, and affected application flows. Test restore in an isolated target when required; never restore over live data as a casual verification step.

Reuse valid evidence for unchanged responsibilities, while completing the project's production release gate. Pruning, retention changes, DNS changes, and host hardening belong in a release only when needed and authorized.

Handoff

Report what was prepared or deployed, the target and immutable release identifier, checks and results, and rollback readiness. For new infrastructure, include topology, public exposure, state ownership, and recovery commands. Keep a routine release report to what changed. Say a restore was tested only when it actually ran, not when its configuration was inspected.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.