Noust is a free (AGPL) Python 3.10+ CLI and FastAPI service that deploys web apps onto Linux servers. It runs as root, so a few classes of bugs are expensive. The project ended up with four rules, each enforced by a test, and each one exists because its absence shipped a real bug:
- Nothing runs a process except one module. Only
core/runner.pymay importsubprocess. Argv only, never a shell, timeouts mandatory, secrets throughenv=orinput=(never argv, which every local user can read inps). The test suite's conftest makes any real process call fail, so code that bypasses the runner can't even be tested.--dry-runlives there too, which is why it can't be honoured in one path and ignored in another. except Exceptiononly at an error boundary, and it must log. There used to be 302 of them, 149 silent; that's how calls to methods that didn't exist shipped for whole releases. mypy blocks CI.- One implementation of each thing. The web API is a client of the same managers the CLI uses, never a second implementation.
- Guards at the chokepoint. Unit ownership is checked in the service manager, read-only SQL is enforced by the database server, escaping by the template engine.
The contributing guide explains each one with the bug behind it: https://github.com/Perkybeet/noust/blob/main/CONTRIBUTING.md
Interested in how others structure similar tools.
I make Noust, a free (AGPL) tool to deploy and run web apps on your own Linux servers, and one part of it might interest homelabbers: the central.
A central is a Noust whose job is managing other Noust servers. Mine is a container on a NAS at the office; from there I manage five VPSes, and every night it takes their backups. How it reaches them:
- it opens an SSH tunnel outward to each server, so nothing on the NAS is exposed to the internet
- each server installs the central's key for an unprivileged account that can't get a shell:
restrict, port forwarding to one local port only,ForceCommand /usr/bin/false, and the same limits repeated in aMatch Userblock of sshd - each server decides the ceiling of what its central may do (read, deploy or admin), and enforces it itself, whatever the central claims
- a host key change is never accepted silently: the tunnel closes and tells you why
- the central collects the servers' backups through the same tunnels, so the copies end up at home on the NAS
The central's image runs without the Docker socket; if you give it the NAS's Docker on purpose, it can also deploy containers on the NAS itself.
- Code: https://github.com/Perkybeet/noust
- How the fleet works: https://noust.dev/docs/concepts/fleet/
Happy to answer questions about the setup.
Noust is a free software (AGPL) tool I've been building to deploy web apps on my own servers without turning them into a Docker host.
What it does on the machine is deliberately boring Linux:
- each app is a systemd unit, so
systemctl statusandjournalctl -uwork as usual - each site is a file in /etc/nginx (or Apache) that you can read, and one you wrote yourself is never rewritten
- builds run as an unprivileged account in a transient systemd unit with a sandbox, and every app created now runs as its own system user
- resource limits are cgroups (memory, CPU, tasks)
- Noust itself is a distro package: apt on Debian and Ubuntu, dnf on Fedora, zypper on openSUSE, built on the openSUSE Build Service; arm64 too
On top of that it gives you releases: every deploy builds in its own directory and only goes live after a health check, so a broken build never replaces the working one, and going back to any previous release takes seconds.
Docker is supported for the apps that need it (Compose stacks, Dockerfiles), but nothing else depends on it, and Noust idles at about 200 MB, so it's happy on a 1 GB VPS.
Curious what Linux folks think of the approach, and what you'd want it to do differently.
Noust is a free software (AGPL-3.0) alternative to Heroku and Vercel that runs on servers you own. You give it a repository and a domain; it builds the app as an unprivileged user in a systemd sandbox, runs it as a systemd unit behind nginx or Apache, gets the certificate, and only switches to a new release after a health check.
A few things I cared about that this community may appreciate:
- No telemetry, nothing to opt out of. The only request it makes on its own is the update check, which you can turn off; the privacy page says exactly what leaves the server and how to check it yourself: https://noust.dev/docs/concepts/privacy/
- The console loads nothing from third parties. Scripts, styles and fonts come from your server, with a strict Content Security Policy; no analytics, no CDN.
- You can leave. Your apps stay ordinary systemd units and nginx files, so removing Noust doesn't take them down: https://noust.dev/docs/guides/leaving/
- Verifiable releases. Signed tags, a signed checksum file for the installer, native packages for Debian, Ubuntu, Fedora and openSUSE built on the openSUSE Build Service, and reproducible wheels.
- English and Spanish in the console, with community translations as plain JSON files.
It's a one-person project from Spain, now at 4.3. Feedback and criticism welcome.
I've been building Noust for about a year, it's at version 4.3 now, and I'd like to hear what self-hosters think of it.
You give it a repository and a domain. It detects the framework (Next.js, Django, FastAPI, Laravel, Rails, Go, Rust, static sites and others), builds it as an unprivileged user in a systemd sandbox, runs it as a plain systemd unit behind nginx or Apache, and gets the certificate. Every deploy is a new release that only goes live if it passes a health check; if it doesn't, the previous one keeps serving, and you can go back to any earlier release in seconds.
Why another one: most self-hosted deploy tools (Coolify, Dokploy, CapRover, Dokku) are Docker-first. Noust isn't.
Your apps are systemd units and nginx files you can read with systemctl and journalctl, and Noust installs as a
normal package (apt, dnf, zypper). Docker is there when an app needs it (Compose stacks, images), and Noust can take
over a Compose stack that's already running without touching it. Noust itself idles at about 200 MB, so it fits on
a 1 GB VPS.
There's also a "central" that manages several servers over SSH tunnels, with a restricted key that can't open a shell. I run mine on a NAS.
What it isn't: an orchestrator, or a container boundary between apps (each app gets its own system user, but they share the kernel). And it's a one-person project.
- Code: https://github.com/Perkybeet/noust
- Docs: https://noust.dev/docs/
- One-minute video: https://noust.dev/media/noust-1min-en.mp4
- Coming from Coolify or Dokploy: https://noust.dev/docs/start/move-from-coolify-or-dokploy/
What would stop you from trying it on a spare VPS?