mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-16 03:15:23 +02:00
Adds instructions.md files for the Supabase and Trigger.dev templates and renders them in the template browser as a new Instructions tab in the template dialog (fetched from blueprints/<id>/instructions.md, rendered with a small dependency-free markdown component). Also removes the placeholder blueprints/ackee/instructions.md so it does not surface as an empty Instructions tab. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2.0 KiB
2.0 KiB
Trigger.dev Setup Instructions
Deploy
- In Dokploy, create the service from the Trigger.dev template.
- Dokploy generates all required secrets (
MAGIC_LINK_SECRET,SESSION_SECRET,ENCRYPTION_KEY, database credentials, etc.) automatically. - Deploy and wait until the containers are running. The main domain points to the
webappservice (port3000).
If you serve the app over HTTPS, set TRIGGER_PROTOCOL=https in the Environment tab (the template defaults to http) so that login links use the correct scheme, then redeploy.
First login (no email server configured)
Trigger.dev logs you in with magic links sent by email. The template does not configure an email transport by default, so the email is never actually sent. Instead, the magic link is printed to the logs of the webapp container:
- Open
https://<your-domain>and enter your email address to request a magic link. - In Dokploy, go to your Trigger.dev service, open the Logs tab, and select the
webappcontainer/service. - Look for a recent log entry containing a URL like
.../magic?token=...(search formagic). - Copy that URL into your browser to complete the login.
Configure email sending (optional)
To have magic links delivered by email, add these variables in the Environment tab and redeploy.
Using SMTP:
EMAIL_TRANSPORT=smtp
FROM_EMAIL=trigger@example.com
REPLY_TO_EMAIL=trigger@example.com
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-smtp-user
SMTP_PASSWORD=your-smtp-password
Using Resend:
EMAIL_TRANSPORT=resend
FROM_EMAIL=trigger@example.com
REPLY_TO_EMAIL=trigger@example.com
RESEND_API_KEY=your-resend-api-key
Restrict who can sign up (recommended)
By default anyone who can reach the webapp can request a magic link. Restrict access with a regex of allowed email addresses:
WHITELISTED_EMAILS=you@example\.com|teammate@example\.com
You can also grant admin rights by email with ADMIN_EMAILS (same regex format).