Skip to main content

How do I install Levelrail and deploy my first app?

Run one command as root on a Linux server, open the dashboard link it prints, choose a password, and deploy an app from a template or a Git repository. In about 10 minutes you have a running app with a health check, logs, metrics and rollback. You can add your own domain with an automatic Let’s Encrypt certificate at the end.

Before you start

  • A Linux server, amd64 or arm64, with systemd and root access. 1 vCPU and 1 GB of RAM boots the platform. 2 vCPU and 2 GB is more comfortable once you build images on it.
  • Ports 80 and 443 free on the server and reachable from the internet. Let’s Encrypt uses port 80. If another proxy holds them, the installer moves Levelrail to ports 8088 and 8443 (coexist mode) and one-click HTTPS does not work. See Server already runs a proxy.
  • Port 8080 stays closed to the internet. The dashboard answers there over plain HTTP, so use an SSH tunnel or open it to your own IP only. See Dashboard port 8080.
  • Optional: a domain you can point at the server. Without one you can use a free sslip.io test address.
The full requirements are in Installing. No server yet? Try it on your laptop first.

1. Install

Expected: preflight rows, then Levelrail vX.Y.Z installed and running. and a dashboard link. The installer checks the host, installs Docker if it is missing, downloads the newest release and verifies its checksum, starts the levelrail systemd service, and waits until it is healthy. Back up /var/lib/levelrail-data/master.key now. Every stored secret is encrypted with it, and nothing can recover it if it is lost.
To pin a release, set LEVELRAIL_VERSION=vX.Y.Z before the command. You can also run Levelrail as a container. See Installing.

2. Open the dashboard

The installer prints two ways in. The SSH tunnel works even when only ports 80 and 443 are open:
Then open the http://127.0.0.1:8080/login#setup=<token> link from the installer output. The direct http://<server-ip>:8080/... link works only if port 8080 is open to you. If 8080 was taken, the installer picked the next free port and printed it, so use the printed port in the tunnel command. Expected: a page asking you to choose a password. After that you are the admin and land on the dashboard. The token travels in the # fragment, so it never reaches server logs or a referrer header.

3. Deploy a one-click template

In the dashboard, open Get started and choose Browse templates under “From a template”, or open Apps, New app, Browse templates. Pick a card, review the pre-filled Compose body, and deploy. There are hundreds of entries, listed in the template catalog. From a terminal on the server:
Expected: the app shows as healthy and has an automatic address. With no domain set, an app gets https://<app>.<dashed-ip>.sslip.io once HTTPS is on (step 5). levelrail-cli open my-status-page prints its addresses. Templates with settings use levelrail-cli templates install <id>. See Templates and registry. Want the quickest proof first? Deploy sample app on the same Get started page runs a small image with a health check in one click.

4. Deploy from Git

In the dashboard, choose New app and paste a repository URL. Levelrail shows a deployment plan before it creates anything: build method, port, environment variables, volumes and warnings. Confirm it, and the build log streams live. From a terminal (on the server, or anywhere you have run levelrail-cli login, see Use the CLI from your laptop):
Expected: the first command prints the plan and stops. The second creates the app and deploys it. A public repository is read over HTTPS. To read a private repository or deploy on every push, connect GitHub, GitLab, Bitbucket or Gitea first, see Git integrations. The importer also accepts docker run commands, compose files and Dockerfiles, see Importing apps. Other routes:
--port is the port the container listens on. To build from source instead, pass --repo <url>, or run apps create inside a git checkout that has an origin remote.

Check that it is running

apps status lists the reconciler’s conditions, each with a reason, so a failed deploy says why. open prints the custom domain first, then the automatic URL. In the dashboard the same app shows live metrics with deploy markers, the deploy history, and a log viewer with search. Levelrail app overview: live metrics and deploy history in one view Levelrail app overview: live metrics and deploy history in one view If the app does not come up, apps status names the failing condition:
  • Health check failed. The app did not answer on the readiness path. Check that the path returns a 2xx status and that the app listens on the port you set.
  • Container crashed. Read levelrail-cli apps logs web for the last lines before the exit.
  • Missing environment variable. Add it with levelrail-cli env set web NAME=value --apply.
For a full diagnosis run levelrail-cli apps diagnose web. See Deploy failures for each failure code.

Roll back

Use the deploy history in the dashboard, or run:
To go back to the previous successful deploy in one step, run levelrail-cli rollback web. Earlier images stay pinned, so cleanup cannot remove a rollback target.

5. Add a domain with HTTPS

First, turn on HTTPS for the dashboard with no DNS: press Enable HTTPS on the dashboard banner or the Domains page, or run:
Expected: the dashboard gets a <dashed-ip>.sslip.io address with a Let’s Encrypt certificate. This is a test address that works only while your DNS resolver answers for sslip.io, so use your own domain for production. Enabling is capped at 5 attempts per hour. After HTTPS is on, signing in over plain HTTP stops working, so use the https address from then on. Then create an A record for your domain pointing at the server’s public IP, and attach it to the app:
Expected: the command prints the go-live steps and exits when the domain is live, or non-zero if it is not live within the timeout. Open the app’s Go live page for one checklist that covers the firewall, DNS and the certificate. See Go live checklist and Domains and ingress.

Troubleshooting the first run

More: Troubleshooting, Installing: Troubleshooting and the FAQ.

Use the CLI from your laptop

levelrail-cli runs on your own machine. It talks to the control plane over HTTPS, so you need no SSH key and no open port.
The CLI has no server address until you give one: always pass --api-url (or set APP_API_URL) on the first login. To manage a second server, add --profile NAME to the login and to every later command for that server; without it the login uses the default profile, which is pinned to the first server it saw (a different server is refused until you pass --reauth). Right after setup, the dashboard home shows a Connect your CLI card. Press Show my command and paste the one line it prints into your terminal. The code is single use, expires in minutes and is only ever shown to a signed-in dashboard session, so it signs the CLI in with no password and no approval step:
If you sign in with your password instead (levelrail-cli login --api-url https://console.example.com), a new device needs approval from a browser where you are signed in. The CLI tells you exactly where:
On a desktop terminal the CLI opens that page for you (--open, or --open=false to turn it off); over SSH and in scripts it does not. In a script it stops at once with the same instructions on one line, unless you pass --wait. Change the wait with --approval-timeout or APP_LOGIN_APPROVAL_TIMEOUT. login --device still works when you prefer to start from the CLI and approve in the dashboard. For CI, create an API token under Settings, API tokens and set it as APP_API_TOKEN. No git remote yet? Run levelrail-cli deploy in the project folder to upload and deploy it directly, see Deploy from your computer.

Finish setting up for real use

After you sign in, the dashboard home shows live stats, recent activity, and a Needs attention list built from the same server checks as levelrail-cli doctor. Levelrail dashboard home with app, request, and deploy stats and a Needs attention list Levelrail dashboard home with app, request, and deploy stats and a Needs attention list The Get started checklist starts with four steps: set the dashboard address and turn on HTTPS, secure the admin account, connect a git source (or skip it and deploy an image), and deploy your first app. Each step turns to done on its own when the matching item exists. The other steps are under More recommended steps. None of them blocks your first deploy. You can Skip a step, Mark done for something the checklist cannot detect, and Undo either. Steps that do not apply to you, such as TLS behind your own proxy, show as “Not needed” and do not count toward your readiness score. The same checklist works from a terminal:
Set up backups before anything else. Your control plane database and master.key are the two things you cannot recreate. The shortest path is First backup in 5 minutes.

What next

Every command, output format (--output, --query) and shell completion option is in the CLI reference. To build from source or run a development instance, see Installing.
Last modified on November 20, 2026