# Deployment (deployments org) subagent brief For profiles `full` and `container`. Template; append the shared rules from conventions.md. ``` Create a new local git repo at ~/projects/deployments/ (if it exists, update it with new commits instead) that will become https://git.bjphoster.com/deployments/ (branch `main` only). Do not deploy anywhere. What it deploys: () from the image `:${_VERSION}` where is `git.bjphoster.com/docker/` (full) or `git.bjphoster.com/source/` (container); first version ; built elsewhere, the deployment must NOT build images. Read (and ~/projects/docker/ if it exists) for runtime details, read only: config example, docs, dockerfile. Runtime facts: . Every path the app writes must be persistent; a config file the app rewrites must be a writable bind mount, not :ro. Check whether config can come from environment variables; if yes prefer env.example entries, otherwise ship an example config file and explain in the README where to copy it. Target host: (, ), deployed at /srv/, public name , behind Traefik (external network `traefik` with subnet , entrypoint `https`, certresolver ``, middleware `hsts` from Traefik's labels; certificate for ). Behind Traefik the app sees the proxy's address: configure trusted proxies / real-IP handling to cover if the app supports it, and any "allow remote" switch the admin UI needs. Conventions (follow exactly; read every file and the git log of ~/projects/deployments/netbox-mcp-server and ~/projects/deployments/coredns-web-ui): - History: `first commit` with MIT LICENSE (Copyright (c) 2026 Bryan Joshua Pedini) and a one-line README.md, then a ` deployment` commit with docker-compose.yml (starting with `---`), env.example, .gitignore (.env and the data dir), a short README with a Usage section (cp env.example .env; docker compose up -d) and an Update section, plus any example config. - Single HTTPS Traefik router only, no HTTP router, no Diun labels; labels as in netbox-mcp-server. env.example `# Træfik` block with defaults for this host: TRAEFIK_MATCHRULE=Host(``), router/service names like , TRAEFIK_MIDDLEWARES=hsts, TRAEFIK_CERTRESOLVER=, _VERSION=, data dir ./data, TZ=Europe/Rome. - Secrets never in the repo: placeholders like `changeme` in examples, real values generated on the host at deploy time. Validate with `docker run --rm -v "$PWD":/w -w /w docker:cli docker compose --env-file env.example config` (docker:cli image; check it is present first, remove it afterwards if you pulled it). Add remote origin https://git.bjphoster.com/deployments/.git, do not push. Report: file list with a contents summary, commit list, and the exact steps to deploy on the host (files to create, where the config goes, which secrets to generate and how). ```