Skip to content

Open-source status page, incident response and uptime monitoring

12.3 KB
Raw Blame
---
category: Guides
title: Self-Host the openstatus Status Page (Lightweight)
seo:
  title: "Self-Hosted Status Page: Options, Tradeoffs, and Setup"
description: How to self-host a status page - what you actually take on by running it yourself, when hosting it is the wrong call, and a Docker Compose setup that runs the status page without any monitoring infrastructure.
faq:
  - question: "Should I self-host my status page?"
    answer: "Self-host if you need the status page inside your own network, have compliance rules about where incident data lives, or want to run it at infrastructure cost rather than per-seat pricing. Do not self-host if the page is your primary outage communication channel and it would share infrastructure with the systems it reports on - a status page that goes down with your product is worse than no status page."
  - question: "Can I self-host only the status page, without monitoring?"
    answer: "Yes. The lightweight Docker Compose stack runs four services - database, one-shot migration runner, dashboard, and status page - and omits automated monitoring, analytics, the API server, and private location probes. It suits teams who already have monitoring elsewhere and manage incidents manually."
  - question: "Is self-hosting a status page free?"
    answer: "The software is free and open-source under AGPL-3.0, but running it is not. You pay for the host, the storage backing the database, TLS certificates and a domain, plus your own time for upgrades, backups, and keeping the thing online. For a status page specifically, that last item is the real cost, because it has to stay up precisely when the rest of your infrastructure does not."
  - question: "Where should I host a self-hosted status page?"
    answer: "Somewhere with no shared failure domain with your production systems - a different provider, or at minimum a different region and account. The entire purpose of the page is to be reachable during an outage, so hosting it next to the thing that breaks defeats it."
---

## Should you self-host a status page?

Worth answering before the Docker section, because self-hosting a status page has a
trap that other self-hosted software does not.

**Self-host when:** the page has to live inside your own network, compliance rules
constrain where incident data is stored, you want infrastructure cost instead of
per-seat pricing, or you intend to modify it.

**Do not self-host when:** the status page is your main channel for telling customers
about an outage, and it would run on the infrastructure that outage affects. A status
page that goes down alongside your product is worse than no status page — customers
lose the one place that was supposed to answer them. If you self-host anyway, put it
in a different failure domain: another provider, or at minimum a different region and
account.

**The cost is not the licence.** The software is AGPL-3.0 and free. You pay in host,
storage, TLS, domain, and your own time for upgrades and backups — and for this
particular workload, in the obligation to keep it available exactly when everything
else is not. If that trade sounds wrong, the [hosted status page](/status-page) exists
so someone else carries it.

For a first-hand account of what running it is actually like, a contributor wrote up
[self-hosting openstatus: the hurdles then, the experience now](/blog/self-hosting-openstatus).

## Problem

You want a status page to communicate incidents and maintenance to your users, but you don't need automated monitoring, analytics, or alerting. You may already have your own monitoring tools, or you simply want a lightweight way to manage your public-facing status page.

## Solution

openstatus provides a lightweight Docker Compose setup that runs only 4 services: a database, a one-shot migration runner, the dashboard, and the status page. This is ideal for teams who only want to self-host the status page without monitoring, or for teams that manage incidents manually using external monitoring tools.

## Lightweight vs full

The lightweight stack strips away all monitoring infrastructure. Here's what each version includes:

| Feature | Full | Lightweight |
|---------|------|-------------|
| Status page | Yes | Yes |
| Dashboard | Yes | Yes |
| Database (libSQL) | Yes | Yes |
| Automated monitoring | Yes | **No** |
| Analytics & charts (Tinybird) | Yes | **No** |
| API server | Yes | **No** |
| Private location probes | Yes | **No** |

If you need automated monitoring, follow the [full self-hosting guide](/docs/guides/self-hosting-openstatus) instead.

## Prerequisites

- Docker and Docker Compose installed
- Git installed
- Command line experience

## Step-by-step guide

### Part 1: initial setup and service launch

1.  **Clone the repository**

    Get the latest version of openstatus:
    ```bash
    git clone https://github.com/openstatushq/openstatus
    cd openstatus
    ```

2.  **Configure your environment**

    Copy the example environment file. This is a simplified version of the full configuration, with only the variables relevant to the status page and dashboard.
    ```bash
    cp .env.docker-lightweight.example .env.docker
    ```
    Open `.env.docker` in a text editor. You **must** set values for the following variables:

    - `AUTH_SECRET` — required for authentication. Generate a value with:
      ```bash
      openssl rand -base64 32
      ```
    - `RESEND_API_KEY` — required for magic link login emails. Get a key from [resend.com](https://resend.com).

    Optionally, you can configure GitHub or Google OAuth providers by filling in the `AUTH_GITHUB_*` or `AUTH_GOOGLE_*` variables in the same file.

3.  **Build and start services**

    Use Docker Compose to build and run all services in the background:
    ```bash
    docker compose -f docker-compose-lightweight.yaml up -d
    ```

    The first build takes several minutes as it compiles the Next.js applications. Subsequent starts are much faster.

    Check the status of the services:
    ```bash
    docker compose -f docker-compose-lightweight.yaml ps
    ```

    Wait until all services show as `healthy` before proceeding. The `db-migrate` service will show as exited — this is expected, as it runs once and stops.

### Part 2: application configuration

4.  **Access the applications**

    -   **Dashboard:** `http://localhost:3000`
    -   **Status Page:** `http://localhost:3001`

    Log in to the dashboard using email authentication (magic link). This will create your account and workspace.

5.  **Set workspace limits**

    Because this is a self-hosted instance, you need to manually set the feature limits for your workspace directly in the database.

    Every key you leave out falls back to its **free-plan default**, not to "unlimited" — a
    partial payload silently caps the workspace at 3 page components, 6 regions, and no OTLP export,
    screenshots, response logs, custom theme, or translations. The block below sets every key the
    current `limitsSchema` (`packages/db/src/schema/plan/schema.ts`) defines, so nothing falls
    through. Change the `WHERE id = 1` at the end if your workspace has a different ID.

    ```bash
    curl -sS -X POST http://localhost:8080/ -H "Content-Type: application/json" -d @- <<'JSON'
    {"statements":["UPDATE workspace SET limits = '{\"monitors\":100,\"synthetic-checks\":100000,\"periodicity\":[\"30s\",\"1m\",\"5m\",\"10m\",\"30m\",\"1h\"],\"multi-region\":true,\"max-regions\":28,\"data-retention\":\"24 months\",\"regions\":[\"ams\",\"arn\",\"bom\",\"cdg\",\"dfw\",\"ewr\",\"fra\",\"gru\",\"iad\",\"jnb\",\"lax\",\"lhr\",\"nrt\",\"ord\",\"sjc\",\"sin\",\"syd\",\"yyz\",\"koyeb_fra\",\"koyeb_was\",\"koyeb_sin\",\"koyeb_tyo\",\"koyeb_par\",\"koyeb_sfo\",\"railway_europe-west4-drams3a\",\"railway_us-east4-eqdc4a\",\"railway_asia-southeast1-eqsg3a\",\"railway_us-west2\"],\"private-locations\":true,\"screenshots\":true,\"response-logs\":true,\"otel\":true,\"status-pages\":20,\"page-components\":500,\"maintenance\":true,\"monitor-values-visibility\":true,\"uptime-history\":true,\"status-subscribers\":true,\"custom-domain\":true,\"i18n\":true,\"password-protection\":true,\"email-domain-protection\":true,\"ip-restriction\":true,\"white-label\":true,\"no-index\":true,\"custom-theme\":true,\"notifications\":true,\"pagerduty\":true,\"opsgenie\":true,\"grafana-oncall\":true,\"whatsapp\":true,\"sms\":true,\"sms-limit\":1000,\"notification-channels\":50,\"members\":\"Unlimited\",\"audit-log\":true,\"sso\":true,\"slack-agent\":true}' WHERE id = 1"]}
    JSON
    ```

    You can find your workspace ID by querying the database:
    ```bash
    curl -X POST http://localhost:8080/ -H "Content-Type: application/json" \
      -d '{"statements":["SELECT id, name FROM workspace"]}'
    ```

6.  **Create your status page**

    In the dashboard, create a new status page, add components for the services you want to display, and publish it. Your status page will be available at `http://localhost:3001`.

## Service architecture

| Service | Container | Host port | Purpose |
|---------|-----------|-----------|---------|
| libsql | openstatus-libsql | 8080 | Database (HTTP API) |
| db-migrate | openstatus-db-migrate | — | One-shot database migration (exits after completion) |
| dashboard | openstatus-dashboard | 3000 | Admin interface |
| status-page | openstatus-status-page | 3001 | Public status page |

## Data persistence

All application data is stored in the `openstatus-libsql-data` Docker volume.

- `docker compose down` **preserves** your data.
- `docker compose down -v` **destroys** the volume and all data.

For production use, back up this volume regularly.

## Troubleshooting

**Containers won't start:** Check the logs for the failing service:
```bash
docker compose -f docker-compose-lightweight.yaml logs <service-name>
```

**Magic link emails not arriving:** Verify that `RESEND_API_KEY` is set correctly in `.env.docker`.

**Dashboard shows errors on first load:** The `db-migrate` service may still be running. Check its status:
```bash
docker compose -f docker-compose-lightweight.yaml ps
```

**Port conflicts:** If ports 3000, 3001, or 8080 are already in use on your machine, update the host port mappings in `docker-compose-lightweight.yaml`. For example, change `"3000:3000"` to `"4000:3000"` to use port 4000 instead.

## Frequently asked questions

<Details summary="Should I self-host my status page?">

Self-host if you need the status page inside your own network, have compliance rules about where incident data lives, or want to run it at infrastructure cost rather than per-seat pricing. Do not self-host if the page is your primary outage communication channel and it would share infrastructure with the systems it reports on — a status page that goes down with your product is worse than no status page.

</Details>

<Details summary="Can I self-host only the status page, without monitoring?">

Yes. The lightweight Docker Compose stack runs four services — database, one-shot migration runner, dashboard, and status page — and omits automated monitoring, analytics, the API server, and private location probes. It suits teams who already have monitoring elsewhere and manage incidents manually.

</Details>

<Details summary="Is self-hosting a status page free?">

The software is free and open-source under AGPL-3.0, but running it is not. You pay for the host, the storage backing the database, TLS certificates and a domain, plus your own time for upgrades, backups, and keeping the thing online. For a status page specifically, that last item is the real cost, because it has to stay up precisely when the rest of your infrastructure does not.

</Details>

<Details summary="Where should I host a self-hosted status page?">

Somewhere with no shared failure domain with your production systems — a different provider, or at minimum a different region and account. The entire purpose of the page is to be reachable during an outage, so hosting it next to the thing that breaks defeats it.

</Details>

## Next steps

- **[Self-host openstatus (full)](/docs/guides/self-hosting-openstatus)** — add automated monitoring, analytics, and alerting.
- **[Hosted status page](/status-page)** — the same status page without the upgrades, backups, and availability burden.
- **[Self-hosting: the hurdles then, the experience now](/blog/self-hosting-openstatus)** — a contributor's account of running it.
- **[Join our Discord](https://www.openstatus.dev/discord)** — get help from the community.