notifyd-deploy
Skill16 starsChanged 3 months agoMITView on GitHub
Deploy and configure a notifyd instance (one Rust binary + Postgres) with Docker Compose or Dokploy — one instance per company, providers by environment variables (Resend, Cloudflare Email Service, SMTP, Telnyx, Twilio), fallback provider, pacing, public URL, admin and read-only keys, MCP access. Use when standing up notifyd, adding a provider, tuning rate limits, or diagnosing a deployment.
- Reads credentials
In this repository3 other files it gives its agents.
- docs/llms.txtllms.txt
- notifyd-integrateSkill
- notifyd-operateSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read docs/DEPLOYMENTS.md (topology, inventory, runbook) and docs/CONNECTORS.md (every variable).
- Very specific: line 38
Create the compose service from docker-compose.yml of this repository (Dokploy: Compose, git source, branch main, autodeploy on.
- Very specific: line 44
Create the company project: POST /v1/admin/projects with id, name, channels, from_email, from_name.
- Very specific: line 50
Run GET /v1/admin/digest (or the digest MCP tool): the findings tell you what is still missing (fallback provider, PUBLIC_URL, sender).
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Deploying notifyd
Read docs/DEPLOYMENTS.md (topology, inventory, runbook) and
docs/CONNECTORS.md (every variable). Principle: one instance per
company, all from the same repository, everything specific in environment
variables, never in the repo.
Minimal production environment
| Variable | Purpose |
DATABASE_URL (or POSTGRES_PASSWORD with the bundled Postgres) | Postgres 16 |
JWT_SECRET | signs subscriber tokens and unsubscribe links (32+ random bytes) |
ADMIN_API_KEY | operator surface + MCP, full rights |
READONLY_API_KEY (optional) | digest, listings, metrics, read-only MCP tools |
EMAIL_PROVIDER + credentials | resend (RESEND_API_KEY), cloudflare (CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_EMAIL_API_TOKEN), smtp (SMTP_HOST…), agentmail, log (dev only) |
EMAIL_FROM, EMAIL_FROM_NAME | default sender, domain verified at the provider |
EMAIL_FALLBACK_PROVIDER + its credentials | second provider used on 429/5xx; same sender domain verified there too |
PUBLIC_URL | public base URL of the instance: hosts the one-click unsubscribe links and the Twilio SMS status callbacks |
CORS_ORIGINS | back-office origins allowed to open the in-app stream and call /mcp from a browser |
SMS_PROVIDER + SMS_FROM + TELNYX_API_KEY or TWILIO_* | optional SMS; TELNYX_WHATSAPP_API_KEY + WHATSAPP_FROM for WhatsApp |
EMAIL_RATE_PER_SEC (8), WORKER_MAX_ATTEMPTS (5) | pacing under the provider limit, attempts before failed |
Generate secrets with openssl rand -hex 32. Never write a value in a file
tracked by git.
Steps
- Create the compose service from
docker-compose.ymlof this repository (Dokploy: Compose, git source, branchmain, autodeploy on; add a push webhook on the repository →<dokploy>/api/deploy/compose/<token>when the Dokploy instance has no GitHub App). - Set the variables above, deploy, check
GET /v1/health:status: ok,commitequal tomain. - Create the company project:
POST /v1/admin/projectswithid,name,channels,from_email,from_name. Store the returned key as the application'sNOTIFYD_API_KEY. Delete the seededcraieproject on any instance that is not CRAIE's (DELETE /v1/admin/projects/craie). - Point the application at
http://notifyd:3400when it runs on the same Docker network; give browsers the public URL only for the in-app stream. - Run
GET /v1/admin/digest(or thedigestMCP tool): the findings tell you what is still missing (fallback provider,PUBLIC_URL, sender).
Operating rules
- Migrations run at boot and are additive; every instance migrates on the same push. Never edit an applied migration.
- Replicas are allowed (SSE fans out through Postgres NOTIFY); pacing is per replica: divide the provider limit by the replica count.
- Scrape
GET /v1/metrics/prometheuswith the admin or read-only key asbearer_token. - A push to
mainredeploys every instance within minutes: runcargo testanddocker build .before pushing.
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
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.

