Hosting a site on my own server

· Servers

I moved this site from Vercel to my own server, to take both cost and control into my own hands. The setup:

Architecture

A small Node app runs with Docker Compose on a single VPS. In front of it sits a Caddy that handles TLS and compression. The domain is at Namecheap, with an A record pointing at the server's IP.

numanbayram.com {
  encode zstd gzip
  reverse_proxy site:3000
}

Caddy obtains and renews the certificate on its own; no extra setup was needed.

Terminal output of the services running under Docker Compose
Terminal output of the services running under Docker Compose

Deployment flow

One command is enough after a change: docker compose up -d --build app. A type check runs during the build; if it fails the new version is not released and the old one keeps running.

What I learned

  • If a bind-mounted file is replaced and its inode changes, the container may keep seeing the old file.
  • After a DNS change, local caching can show the old address for a while.