All pages

Get started

Quick start

Run RunOne, connect a server, and deploy your first service.

You need Go 1.27, Node.js, and Docker. Run every command from the root of the RunOne repository.

Start RunOne

  1. 1

    Start a database

    RunOne keeps all of its state in Postgres.

    docker run -d --name runone-test-pg -e POSTGRES_PASSWORD=runone -e POSTGRES_DB=runone_test -p 127.0.0.1:55439:5432 postgres:17.12
  2. 2

    Set the control plane's environment

    Copy .env.example to .env, fill it in, and export it. RUNONE_SECRET_KEY seals secrets; keep it, because without it nothing stored can be read again. RUNONE_PUBLIC_URL is the address your servers reach RunOne at.

    set -a; . ./.env; set +a
  3. 3

    Start the control plane

    It listens on 127.0.0.1:8080. Tables are created and migrated when it starts.

    go run ./cmd/runone-control serve
  4. 4

    Start the dashboard

    In a second terminal. Then open http://localhost:3000.

    npm --prefix dashboard run dev -- --port 3000

Deploy your first service

  1. 1

    Sign in

    Choose Continue with Google. The first time you sign in, RunOne makes a workspace for you.

  2. 2

    Connect a server

    On Servers, choose Register Server, then run the command it shows on the machine, as root. The server turns Ready when its agent reports in. See Servers.

  3. 3

    Create a project and an environment

    On Projects, choose New Project. Open it and create an environment called production.

  4. 4

    Add a service

    Choose Add Service. Give it a name such as web, pick its type, and enter the port your app listens on.

  5. 5

    Say what it runs

    Open the service, go to Settings, and enter an image such as nginx:1.28-alpine, or a Git repository. Save.

  6. 6

    Deploy

    Choose Deploy. The page follows the deployment until the status reads Running.

What comes next

  • Give the service its settings and secrets: Variables.
  • Put it on your own address with HTTPS: Domains.
  • Build it from your repository on every push: Deploy from Git.