November 20, 2026 · 5 min read
Hosting everything on one ARM VM with Caddy
How Seeloud, Shridhan, Peace Nursery and this site share a single 4-core ARM box, with certificates for domains I don't know in advance.
All my projects run as Docker Compose stacks on one Oracle Ampere VM: 4 ARM cores, 24 GB of RAM. One Caddy container is the only thing bound to ports 80 and 443, and every project joins a shared Docker network called edge.
One proxy, many stacks
Each project's public service joins edge with a unique alias like seeloud-web or portfolio-web, and gets one site block in the Caddyfile. Databases stay on each project's private network. No project publishes ports.
sameerkr.dev, www.sameerkr.dev {
reverse_proxy portfolio-web:80
}Certificates for hosts nobody listed
Seeloud users bring custom domains, and Shridhan gives every society its own subdomain. Caddy's on-demand TLS issues a certificate on the first request, but only after asking an internal URL whether the host is allowed. Caddy allows one ask URL, so it points at a tiny dispatcher that routes *.shridhan.loan to Shridhan and everything else to Seeloud.
I avoid wildcard site blocks on purpose: Caddy then skips the normal certificates for hosts under them. A host matcher inside the catch-all does the same job without that side effect.
ARM changes everything
Images built on my x86 laptop don't run on the VM. Every compose file has build sections, every base image is multi-arch, and stacks are built on the VM itself with docker compose up -d --build.
It's a small setup, but it's mine end to end, and it costs nothing a month.