No server yet. No idea where to start. This page takes you from nothing to a live app with checked backups, step by step. Every step links to the page that explains it.
rent → key → install → deploy → close SSH → domain → secure → bucket → restore → watch
1. Rent a server
At a provider like Hetzner or DigitalOcean, make a server: Ubuntu LTS, 2 vCPU, 4 GB, with an IPv4 address. Paste your public key in the form, from step 2. Note its IP, here 203.0.113.7. What is a server
2. A key and a name
On your laptop, if you have no key yet:
ssh-keygen -t ed25519 -C "ada@laptop" cat ~/.ssh/id_ed25519.pub
Then name the server in ~/.ssh/config:
Host my-server HostName 203.0.113.7 User root
Check it: ssh my-server, type yes once, then exit. SSH and keys
3. Install moin
On your laptop:
curl -fsSL https://moin.run/cli.sh | sh
It installs moin only when the release’s signature checks out. Get started
4. Deploy
Your app must be in git, with a commit. moin sends what is committed.
cd my-app moin deploy my-server
my-app · 3f2a9c1 → my-server ? Set up moin on my-server and deploy my-app? [y/N] y ✓ installing Docker 41s ✓ installing moin v1.2.3 1s ✓ starting the daemon: backups, checks, reports 1s ✓ sending the source ✓ starting the proxy on ports 80 and 443 ✓ detected compose, service web on port 3000 ✓ building 9s ✓ starting 12s ✓ database postgres-db (Postgres, service db) ✓ my-app v1 is live: https://my-app.203-0-113-7.sslip.io Postgres found. No backup yet: moin bucket set my-server Nobody watches my-server yet. If it dies at 3 a.m., your users tell you first. moin watcher connect my-server 30 days free. No card.
The first time it installs Docker and moin on the server. That takes about two minutes. The app is named after the folder.
moin looks at your folder, and builds it like this:
| Your folder has | moin builds |
|---|---|
compose.yml |
the compose app, as it is |
Dockerfile |
that Dockerfile |
go.mod |
your Go app, with a Dockerfile moin writes |
package.json |
Node, or Bun with a Bun lock file, with Railpack |
requirements.txt or pyproject.toml |
Python, with Railpack |
Gemfile |
Ruby and Rails, with Railpack |
composer.json or index.php |
PHP, with Railpack |
Railpack says what it found, like → Railpack: Node 24.11.1, start: npm run start, dimmed under the step.
Without a compose file, your app listens on PORT, which is 8080, on every address, not only localhost. A SQLite file goes in DATA_DIR, which is /data, so it is kept and backed up. Settings and secrets go in its env: moin env edit my-app. Docker and compose
5. Close public SSH
Right after the first deploy, moin asks:
? Close public SSH, only Tailscale from now on? [Y/n]
Install Tailscale on your laptop first, and log in. Then press Enter. moin puts the server in your tailnet, tries SSH over it, and only then closes port 22. moin connects over Tailscale from then on. It prints the new HostName for your own ssh in ~/.ssh/config. Tailscale
6. A domain
moin domains add my-app my-app.example.com
Where your domain lives, add an A record: my-app → 203.0.113.7. HTTPS follows by itself. Domains and DNS
7. Close the rest
moin secure my-server
It asks for a Cloudflare Tunnel token. Paste it, and send my-app.example.com to http://moin-traefik:8080 in the tunnel’s Public Hostnames. Now no public TCP port is left. Enter without a token keeps the web on 80 and 443, and closes everything else. Cloudflare Tunnel
8. A bucket and your key
Make a bucket at any S3-compatible provider, best not the one of your server. Then:
moin bucket set my-server
It asks for the endpoint, the bucket name, the access key and the secret key. Then it shows your backup key, once:
✓ my-server backs up to backups. The first copies come within a minute See them with moin backups <app> ✓ Locked: a hacked server can't delete your copies. Your backup key for my-server. It is shown once. Every copy is encrypted for it. Put it in your password manager: when my-server is gone, only this key opens its copies. AGE-SECRET-KEY-1… ? Paste your backup key, to confirm that you have it: ✓ Your key opens the copies of my-server: it read the copy 20261127T140000Z-118204 of postgres-db from the bucket to the end
Save it in your password manager first. Then paste it back. What a backup is
9. See a backup and restore it
moin backups my-app moin restore my-app
moin backups lists the copies, and the last daily restore check. The copy that check proved says ✓ checked. moin restore lets you pick a copy, and keeps the data from before as an undo. Try it once now, on a quiet day. Backups
10. Someone who notices
A dead server can’t tell you it’s dead. Let moin cloud watch it:
moin watcher connect my-server
The first time, the browser signs your laptop in.
→ Sign in to moin cloud in the browser, and allow the code K7QF-92MD: https://moin.run/cli?code=K7QF-92MD ✓ Signed in to moin cloud ✓ my-server reports to moin cloud every minute See it with moin watcher
Or run your own watcher, on another machine. Watcher
Done
Your app is live on your domain. No port is open to the internet. Every hour a copy goes to your bucket, and every day one is restored and read. If the server stops, you hear about it.
From now on, a new release is one line, in the app’s folder:
moin deploy