Guides
Email Notifications
Astrodock can email you when one of your apps goes down and again when it recovers. It's completely optional: set up an email provider and an address to alert, and the built-in health monitor does the rest.
On Astrodock Cloud
Use the steps under Turn It On. There is no .env to edit. If you use SMTP, use a
port other than 25, which is blocked. Nothing is sent until a provider is set up.
Optional, off by Default
With no provider set up, email is off. The health monitor still runs and you can always see app status in the dashboard. You just won't get emails.
Turn It On
- In the dashboard, open Settings → Email and choose a provider: Resend (one API key) or SMTP (host, port, user and password, which works with SES, Postmark, Mailgun, Gmail and most others).
- Under Settings → Alerts, set the Alert Recipient and the Email "From" Address. The From address must be one your provider lets you send as.
- Send a test message from Settings → Email to check it arrives.
Keys and passwords are stored encrypted.
Setting It in .env (Self-Hosted)
When you host it yourself, you can also put the starting values in .env. Anything
you later set in Settings replaces them.
# ── Email / alerts (optional) ──
ASTRODOCK_RESEND_API_KEY=re_your-resend-api-key
ASTRODOCK_ALERT_EMAIL=you@example.com
ASTRODOCK_EMAIL_FROM=Astrodock <noreply@example.com>
| Setting | What It Is |
|---|---|
ASTRODOCK_RESEND_API_KEY | Your Resend API key. This is the on/off switch: no key means no email. |
ASTRODOCK_ALERT_EMAIL | Where down/recovery alerts are sent. Use a real inbox you watch. |
ASTRODOCK_EMAIL_FROM | The "from" address alerts come from. Use a domain you've verified in Resend so mail doesn't get marked as spam. |
Get a Key from Resend
Create a free Resend account, verify the sending domain you'll use in
ASTRODOCK_EMAIL_FROM, and generate an API key. Paste the key into
ASTRODOCK_RESEND_API_KEY.
Changes to .env take effect on the next start. Bring the stack back up:
docker compose up -d
Compose recreates the services that need the new values. Nothing else to do: the health monitor picks up your settings on boot.
What Triggers an Email
A health monitor inside Astrodock checks every provisioned app on a regular interval. It sends exactly two kinds of message:
- Down alert: sent once after an app fails several consecutive health checks
in a row (a single blip won't page you). The subject looks like
[Astrodock] <App Name> is DOWN. - Recovery notice: sent once the app starts responding again, with roughly how
long it was down. Subject:
[Astrodock] <App Name> has RECOVERED.
You get one down email per outage and one recovery email per recovery, not a check-by-check stream. An app you deliberately stop is treated as stopped, not down, so it won't alert.
Where to See App Health
Emails are a convenience layer on top of the dashboard. The Health page in the admin UI shows every app's current status, recent response times, and how long anything has been down, whether or not email is configured.
See The dashboard for a tour of the Health page and the rest of the admin UI.
This Is Operator Alerting, Not App Email
These notifications go to you, the person running the platform, about platform health. They are not a transactional email service for your apps to send mail to their own users. If an app needs to email its users, give it its own mail provider.
Related
- Watch app status in the dashboard: The Dashboard
- Keep your install safe: Backups & Restore
- Every config value explained: Install & Run