Blog

How to self-host a status page with Docker in ten minutes

A step-by-step guide: run yasp in Docker, sign in, monitor a website and publish your first status page, with nothing but a Linux machine.

· 3 min read

A status page is where your users go when something seems broken. Hosting it yourself means no per-subscriber pricing and your data on your own machine. This guide gets one running with Docker, monitoring a real website, in about ten minutes.

You need a Linux machine with Docker. A small VPS is plenty: yasp uses about 29 MB of memory on our demo server.

1. Generate an encryption key

yasp encrypts the secrets you give it, like an SMTP password or webhook secrets, before storing them. Make a key:

docker run --rm ghcr.io/yasp-dev/yasp keys generate

Copy the base64:… value it prints and keep it in your password manager. Database backups don't contain the key, and a restored database needs it.

2. Start yasp

docker run -d --name yasp -p 8080:8080 -v yasp-data:/data \
  -e YASP_BASE_URL=http://localhost:8080 \
  -e 'YASP_ENCRYPTION__KEYS=[{id="k1",key="base64:PASTE_YOUR_KEY"}]' \
  -e YASP_EMAIL_LOGIN__ENABLED=true \
  ghcr.io/yasp-dev/yasp

What that does:

  • -v yasp-data:/data keeps the SQLite database in a Docker volume, so it survives upgrades.
  • YASP_BASE_URL is the address people use to reach yasp. Use your real address, like https://status.example.com, once it's public.
  • YASP_EMAIL_LOGIN__ENABLED lets invited people sign in with one-time links, so you don't need an identity provider to start. You can add OpenID Connect or SAML later.

Open http://localhost:8080. You'll see an empty status page.

3. Sign in

You have no mail server yet, so create the first admin from the command line. It prints a sign-in link that works once, within 15 minutes:

docker exec yasp yasp admin invite --email you@example.com --role admin

Open the link and you're in the dashboard at /admin.

4. Monitor something

Under Monitors, choose Add monitor, pick Website or API, and enter an address you care about. Before saving, press Test now: yasp runs the check once and shows what it saw, the status code, the time taken and the certificate's expiry. Save it.

5. Put it on the page

Monitors are for you; components are what your users see. Under Components, add one called "Website" and link it to the monitor. If the monitor goes down, the component shows an outage on the page by itself.

Open the status page again: your component is there with its uptime bar.

6. Tell people when something breaks

Under Incidents, choose New incident, describe what's happening, pick the affected component and its status, and publish. It appears at the top of the status page, with a permanent link and in the RSS and Atom feeds. Post updates as you learn more, then resolve it.

To let visitors subscribe by email, set up a mail server under Notifications → Email delivery; the status page then offers Get updates.

Going further

  • Put it on your domain. yasp can get and renew its own HTTPS certificates. See HTTPS and custom domains.
  • Check from other places. A remote probe checks from another region, or from inside a private network.
  • Let it write incidents. Set a component to draft or publish an incident when its monitors detect an outage. See incidents.
  • Make it production-ready. Backups, upgrades and keys are in operations.

Want to look around first? The live demo is a read-only yasp with sample data.

Try yasp

Click through the read-only live demo, or install it in a few minutes.