Some links on this page are affiliate links: if you sign up through them, this site earns a commission at no extra cost to you. Prices and recommendations are not affected.

“Does it run on a 1 GB VPS?” is the question behind half of all self-hosting threads, and the answers are mostly folklore: someone remembers that a service “eats a lot” or “barely uses anything”, with no number and no version attached. So we measured. We started eight common building blocks as plain Docker containers on one machine and read their memory twice: about 80 seconds after start, and again after five minutes.

That second reading is the point of this article. The first one is wrong in a way that matters, and it is the one most people take.

This is an idle floor, not a load test. Read it as “what you pay just to have the service running”, which is exactly the number that decides whether your next service fits on the box you already rent.

What we measured and how

One Linux host, Docker with cgroup v2, no memory limits except one (Caddy got a 2 GB cap, which it never approached). Each service started with default settings, empty data, and no clients connected. We ran docker stats --no-stream three times, 20 seconds apart, starting at about 80 seconds, and then twice more, 20 seconds apart, after roughly five minutes of idle.

Versions, read from the images we pulled on 22 November 2026:

  • Caddy 2.11.9
  • nginx 1.31.9 (the alpine image)
  • ntfy 2.38.1
  • Gotify 3.1.1
  • Vaultwarden 1.37.5
  • Uptime Kuma 1.23.17
  • Redis 7.4.12
  • PostgreSQL 17.12 (the alpine image)

A note on what the number means. docker stats reports the container’s cgroup memory with the inactive file cache subtracted. It is a good proxy for “what the kernel will not give back easily”, but it is not the same as RSS, and it moves as the page cache fills. Treat differences of a few MiB as noise.

The results

Idle, empty data, no clients. The first column is the reading at about 80 seconds, the second is the settled reading after about five minutes:

ServiceAt ~80 s (MiB)Settled, ~5 min (MiB)Image size on disk
Redis 7.44.1 to 4.43.939.6 MB
Gotify 3.1.18.0 to 8.99.5144 MB
Vaultwarden 1.37.5456.4 to 8.8311 MB
nginx 1.31 (alpine)13.110.763 MB
Caddy 2.11.99.8 to 10.110.9 to 1165.3 MB
ntfy 2.38.113.9 to 14.216.686.4 MB
PostgreSQL 17.1224.623.1 to 23.2298 MB
Uptime Kuma 1.23165114 to 115448 MB

Add the settled column up and the idle floor of the whole stack is roughly 200 MiB. The 80-second column adds up to about 285 MiB. Same eight containers, same host, a difference of about 45% that comes entirely from when you looked.

What surprised us

The first reading overstates the heavy starters. Vaultwarden read 45 MiB at 80 seconds and about 6 to 9 MiB after five minutes, a drop of roughly five to seven times. Uptime Kuma went from 165 to 115 MiB. Startup work (opening databases, migrations, warming caches, JIT) takes memory that it then gives back. If you size a server from a screenshot of docker stats taken right after docker compose up, you will buy a bigger box than you need.

Go and Rust services are tiny. Gotify and Vaultwarden settle at single-digit MiB. ntfy, a statically linked Go binary, is around 17 MiB. If your mental model of “a web service” is a JVM or a Node process, reset it: these are an order of magnitude lighter.

Caddy costs the same as nginx at idle. Caddy at about 11 MiB against nginx at about 10.7 MiB is a tie. The extra thing Caddy gives you, automatic HTTPS certificates and renewal with no cron job, costs no memory we could see. We use Caddy for exactly that reason in our Caddy and Docker production guide.

Uptime Kuma outweighs the other seven combined. At about 115 MiB settled it is the largest single consumer, because it is a Node.js application. The other seven add up to roughly 82 MiB. That is fine, but it is the service to watch if you are counting megabytes.

The database is small when it is empty. A bare PostgreSQL 17 settles at 23 MiB. That is the floor: it grows with shared buffers, connections and data. If a service offers SQLite, take it for small installs, which is part of why Vaultwarden and Gotify cost almost nothing. A shared PostgreSQL for several apps usually beats one PostgreSQL per app.

Three numbers for the same container

If you read memory from the kernel instead of from docker stats, you get a bigger number, and it is not a mistake. We read the cgroup files for the same containers in the same minute:

  • Caddy: docker stats 11 MiB, cgroup memory.current 37 MiB, of which anonymous memory (the process itself) 8 MiB and the rest file cache.
  • Uptime Kuma: docker stats 115 MiB, memory.current 166 MiB, anonymous 91 MiB.
  • ntfy: 17 MiB against 46 MiB, anonymous 11 MiB.

The extra is page cache from reading the program’s own files off disk. The kernel reclaims it under pressure, so it does not count against you the way anonymous memory does. But it is why a dashboard that reads memory.current will show your stack at about 385 MiB while docker stats says 200. Neither is lying; they answer different questions. For “will this fit”, the anonymous number plus some headroom is the one that matters.

What this does not tell you

We are not going to pretend an idle reading is a capacity plan.

  • Load changes everything. PostgreSQL grows with shared buffers and connections, Redis grows with data, Vaultwarden and ntfy grow with clients and cached messages. We measured none of that.
  • Numbers vary between runs. An earlier run of ours on the same host read Caddy at 49 MiB and PostgreSQL at 52 MiB. We could not reproduce that on the re-run above and we do not know why. That is the reason to read a range, wait for it to settle, and measure on your own box.
  • We did not measure CPU under load, only that idle CPU stayed under 1% for everything (Redis and Uptime Kuma busiest, at about 0.3 to 0.6%).
  • The kernel, Docker itself and your SSH session are not in the table. Budget a couple of hundred MiB for the operating system and the container runtime before you count services.
  • Vaultwarden needed a flag to run at all in our empty-volume test. Without a persistent volume it refuses to start unless you set I_REALLY_WANT_VOLATILE_STORAGE=true. We set it only for the measurement; in real life, mount a volume.

How to measure your own box

Nothing here needs special tooling. Start a service, wait five minutes, read the number twice:

docker run -d --name probe-ntfy binwiederhier/ntfy serve
sleep 300
docker stats --no-stream --format '{{.Name}} {{.MemUsage}}' probe-ntfy
sleep 20
docker stats --no-stream --format '{{.Name}} {{.MemUsage}}' probe-ntfy
docker rm -f probe-ntfy

For a running stack, one line shows everything, sorted by name:

docker stats --no-stream --format '{{.Name}} {{.MemUsage}} {{.CPUPerc}}' | sort

If you want memory to be a hard guarantee instead of a hope, give the noisy containers a limit with --memory (or mem_limit in Compose). A container that hits its limit is killed on its own, instead of the kernel picking a victim for you. We covered what that looks like, including the exit code, in our Docker production gotchas.

Which box do you need? By scenario

The numbers above map onto four common situations.

A personal toolbox on 1 GB. Reverse proxy (Caddy), push notifications (ntfy or Gotify), password manager (Vaultwarden). That is about 40 MiB settled, and with Uptime Kuma on top about 150 MiB. Everything fits with room to spare, and you can run the same stack on an old mini PC at home. If you are choosing between notification tools, our ntfy vs Gotify vs Pushover comparison goes through it.

A small team stack on 2 GB. Add PostgreSQL, Redis and one or two real applications. The full eight-service stack is about 200 MiB of idle floor before the apps themselves. This is where “it ran fine in testing” starts to be a trap, because a busy PostgreSQL and a Node app both grow.

Anything with a build step or a CI runner on 4 GB. A runner compiling code can use more than all the services above combined for a few minutes, then give it back. This is the case where memory limits and a bit of headroom pay for themselves, and where the cost question flips: see our CI runner cost comparison.

Databases you care about. Give the database its own headroom. The idle 23 MiB is a floor, not a budget, and swap on a database server is a bad day waiting to happen.

When to stop squeezing and buy more

Squeezing one more service onto a full box costs you hours of debugging the first time the kernel kills something at 3 a.m. A bigger VPS is cheaper than that. As a rule of thumb: if your idle floor plus the operating system is above about 60% of RAM, the next service should go on a new box or a bigger tier, not on a diet.

Our VPS comparison lays out Hetzner, DigitalOcean and Vultr with the benchmarks we ran, so you can match the tier to the table above.

FAQ

Do these numbers include the operating system? No. They are per-container memory from docker stats. Add the OS, the Docker daemon and your own session; a couple of hundred MiB is a reasonable allowance on a small server.

Why did you give two readings? Because they differ. A container right after start holds startup memory it later returns: Vaultwarden was about five to seven times larger at 80 seconds than after five minutes. Wait before you read.

Is idle memory a good predictor of memory under load? Only for the smallest services. Databases and caches grow with data and connections. Use the idle number as a floor and leave headroom above it.

Why is Vaultwarden so small? It is written in Rust and uses SQLite by default, so there is no separate database process and no large runtime. That is also why it is a popular first service to self-host.

Why does Uptime Kuma use so much more than ntfy? It is a Node.js application with a web front end and a scheduler for all your checks. ntfy is a single statically linked Go binary. They do different jobs, but the difference in footprint is real.

Can I run all eight on a 1 GB VPS? At idle, yes: the settled sum is about 200 MiB. Under real traffic, with a busy database, you would want 2 GB or more, and you should set memory limits.

What about Kubernetes? The same containers cost the same memory inside pods, but the cluster itself adds a fixed overhead. For a one-box setup, plain Docker Compose has the smallest floor.

What’s next

If the table says you are near the edge of your current server, the cheapest fix is the right tier on a provider with predictable pricing.