virling Docs
v0.3.0 virling.com GitHub Start free
virling Docs

Install

Virling ships as a Docker image and as release binaries. You can also build it from source with Rust.

OptionPlatformsPick it when
Install scriptLinux x86_64 and arm64, macOS on Intel and Apple siliconYou want one command. On Linux with systemd it also sets up the user, data folder and service. On macOS it only installs the binary
Dockerlinux/amd64, linux/arm64Your server already runs containers, or you want to pin and change versions by image tag
Release binarySame as the install scriptYou manage the service yourself, use another supervisor, or want to verify the checksum by hand
Build from sourceAnywhere Rust 1.99 buildsThere is no release for your platform, or you want to change the code

The quickest way to get the binary is curl -fsSL https://virling.com/install.sh | sh, see Install script.

Every option gives you the same virling binary. It runs serve by default and keeps its files in one data folder.

Server size

One vCPU and 1 GB of RAM is enough for 100,000 pageviews a month. Measured on 2026-10-31 with scripts/load-1cpu.sh, in a container limited to 1 vCPU and 1 GB on a GitHub Actions runner:

TestResult
100,000 pageviews sent to /api/event, 16 at a time2,829 a second, none failed, p50 4 ms, p99 34 ms
Memory after the ingest157 MB
Every dashboard route on the demo data, no result cachep50 0.6 to 7.6 ms, p95 up to 64 ms on long date ranges

Run the script on your own server to measure it there.

There is no release build for Windows Not available yet. On Windows, use Docker or build from source.

After installing

Do these in order. Each links to the page with the details.

StepWhat to doDetails
1. Start itRun virling serve --app. Without --app there is no sign-in, dashboard or payment sync. The service from the install script already runs it.Docker, binary, systemd
2. Set the domainPoint a subdomain such as stats.example.com at the server and set VIRLING_BASE_URL to it, with https:// and no trailing slash. Sign-in links use it.Environment variables
3. Add a reverse proxyVirling serves plain HTTP. Put Caddy, nginx or Traefik in front for HTTPS, and set VIRLING_TRUST_PROXY=true. The install script listens on every address, so set VIRLING_ADDR=127.0.0.1:8080 too when the proxy is on the same server.Reverse proxy
4. Create the first accountAdd your site with its owner’s email, using the data folder the server uses. The account is created if it does not exist.CLI
5. Sign inOpen /login and enter that email. Without SMTP, the link is in the server log.Sign-in email
6. Set up backupsBack up the whole data folder, with secret.key. Try a restore once.Data, backups, upgrades
7. Add the script and paymentsPut the tag on your site, connect a provider and make a test payment.Quickstart, Test your setup

For step 4, pick the command for your install:

# Install script or systemd
sudo -u virling env VIRLING_DATA=/var/lib/virling \
  virling add-site yourdomain.com --owner you@example.com

# Docker
docker exec virling virling add-site yourdomain.com --owner you@example.com

To check the server before you point a domain at it, run curl -fsS http://127.0.0.1:8080/health on it. It prints ok.

Outgoing connections, such as the extension DuckDB downloads on the first start, are listed in Outbound connections.

Connect your payment provider and see revenue by channel.

Start free
Was this page helpful?No Edit this page on GitHub