Install on a server
Run locally (to test)
Want to kick the tires before committing to a server? You can run the whole platform on your own computer. It's perfect for evaluating Astrodock or developing apps — just remember it's only reachable from your machine, so it's not a real, shareable install.
This is for trying it, not for real use
A local install has no public address and no real HTTPS. When you're ready to put apps online, follow DigitalOcean or your own server / any VPS.
-
Install Docker Desktop
Get Docker Desktop for Mac or Windows (on Linux, Docker Engine is fine) and start it. Confirm it works:
docker compose version -
Get Astrodock
Clone the repository (locally you probably want the source anyway):
git clone https://github.com/astrodock/astrodock.git cd astrodock -
Configure for local — one command
This generates a local
.env(localhost, plain HTTP) with every secret filled in. It asks nothing:./scripts/setup.sh --local -
Start it
docker compose up -dThis pulls the prebuilt images. To build from your working copy instead — which is what you want if you're changing Astrodock itself:
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build(Tip:
./scripts/setup.sh --local --upconfigures and starts in one go.) -
Create your account and open the dashboard
Go to http://admin.localhost. On a fresh install you'll get the setup wizard, which asks for a one-time token printed in the log:
docker compose logs api | grep -A2 'first-run setup'Paste it, pick an email and password, and you're in. Because
--localalready set the domain, the wizard skips straight past the domain step. Your apps will live athttp://<subdomain>.localhost.Why
.localhostjust worksBrowsers automatically resolve any
*.localhostname to your own computer, soadmin.localhostandnotes.localhostwork with no DNS or hosts-file changes.
Stopping & cleaning up
docker compose down # stop the stack (keeps your data)
docker compose down -v # stop AND delete all data (fresh start)
What's next
- Deploy your first app → (works the same locally)
- Ready for real? DigitalOcean or any server