Astrodock Cloud
Cloud vs Self-Hosted
Astrodock Cloud and a self-hosted install run the same platform. Building, deploying, sign-in, databases, storage and the CLI work the same way. This page lists what is different.
At a Glance
| Astrodock Cloud | Self-Hosted | |
|---|---|---|
| The machine | We run it. One server per customer. | You run it, on any Linux machine with Docker. |
| Cost | A monthly plan. See Plans & Billing. | Free for personal and noncommercial use. You pay for your own machine. For business use, choose Astrodock Cloud. |
| Getting started | npx @astrodock/cli login signs you up and hands the CLI a key. | Run the install script, then astrodock login --url with your dashboard's address. |
| Addresses | <app>.<name>.<customer-domain>, set up for you. Your own domain is optional. | Your own domain, with one wildcard DNS record. |
| Updates | We roll new versions out to every server. Never a downgrade. | You update from the dashboard or the server. See Upgrading. |
| Server access | No SSH. The server terminal and astrodock server run are off. | Full access to your machine. |
| Platform settings | In the dashboard only. The .env file and ASTRODOCK_ variables are ours. | The dashboard and .env. See Configuration. |
| Set up a provider in Settings → Email: Resend, or SMTP on a port other than 25. Nothing is sent until you do. | The same, or with values in .env. See Email Notifications. | |
| Network | Only ports 80 and 443 are open to the internet. Outbound port 25 is blocked. | Whatever your machine and firewall allow. |
| Backups | A database backup every 24 hours, the last 7 kept on your server's disk. The schedule can't be changed. There is no off-site copy. | The same by default. Change it with ASTRODOCK_BACKUP_INTERVAL_HOURS and ASTRODOCK_BACKUP_KEEP in .env. You copy backups off the machine. See Backups. |
| Node apps | Each runs in a container of its own, with memory and CPU caps. | The same on new installs. Older installs keep running apps under PM2 until switched. |
| After you stop paying | A snapshot is kept for 60 days, then deleted. | Nothing changes. The machine is yours. |
Memory and CPU per App
Each app runs with a cap on memory and CPU, so one app can't starve the others. The default is 512 MB and 1 CPU per app. You can change it per app in the dashboard, up to half your server's memory (at most 4 GB) and all of its CPUs. A build gets at least 2 GB where the server allows it, within the same maximum.
| Plan | Most Memory for One App | Most CPUs for One App |
|---|---|---|
| Small | About 1 GB | 1 |
| Medium | About 2 GB | 2 |
| Large | About 4 GB | 4 |
The same rule applies to a self-hosted install, unless its .env sets the maximums.
What We Watch
We check each server's health and its outbound traffic. A server sending a flood of traffic is flagged to our staff, who can power it off while they look. Your data is kept.
What We Can and Can't Do on Your Server
The service talks to your server through a small API with its own key. Through it, we can:
- Read the server's status: its version, whether it answers, how many apps it has, and each app's name and traffic over the last day.
- Start an update to a newer version.
- Deliver your first welcome link, before you have set up sign-in.
- Start a CLI sign-in. You still approve it, and only the CLI that started it can collect the key.
It can't read your apps' code, their data or your users. Once you have a passkey or password, it can't make another welcome link.
The First Welcome Link
Until you first set up sign-in, the service holds the link that does it. If your welcome link has already been used when you open it, someone else used it first.
The full list of what is and isn't enforced is in SECURITY.md, under "Hosted mode".