User Agents

Install Buzz on a VPS: Docker, DNS and Secure Access

Self-hosting Buzz on a VPS puts your own transcription app on hardware you control, reachable from your laptop or phone through a domain name instead of an IP address. Docker handles the runtime, DNS gives you a stable hostname and a certificate, and a reverse proxy with an identity gate keeps the port closed to strangers. Before you start, confirm three things: you have a VPS (2 vCPU and 4 GB RAM is a realistic minimum for transcription work, more if you batch long files), you own a domain you can add DNS records to, and you can reach the server over SSH as a non-root user with sudo rights. Treat every step below as something to verify, not just run: DNS propagation and certificate issuance both fail quietly in ways that look like an app problem later.

What You'll Need

  • A VPS running a current Debian or Ubuntu release with SSH key access and sudo.
  • A domain or subdomain you control, for example buzz.example.com.
  • Docker Engine and the Compose plugin, installed on the server.
  • A reverse proxy, either Caddy (simplest) or Nginx with Certbot for TLS.
  • A DNS provider that lets you create A and AAAA records and edit them quickly.
  • An identity provider if you plan to expose the app publicly, or a mesh/VPN for private-only use.
  • Roughly 20 GB of free disk space for images, models and uploaded audio.
  • A local SSH client and a text editor for editing Compose and proxy files.

Step-by-Step

  1. Harden the server first. Log in as root once, create your own user if needed, add your SSH public key, and confirm you can log in as that user before disabling password authentication. Set PermitRootLogin no and PasswordAuthentication no in the SSH config, reload the daemon, and test a second session before closing the first. Enable the host firewall with only 22, 80 and 443 open. The app port should never be exposed directly.
  2. Install Docker properly. Use Docker's official repository instructions for your distribution rather than the distro's old packages, so you get the current Compose plugin. Verify with docker --version and docker compose version. Add your user to the docker group, then log out and back in so group membership applies. Being in that group is equivalent to root: only add accounts you trust.
  3. Point DNS at the server. Create an A record for buzz.example.com pointing to the VPS IPv4 address, and an AAAA record only if you have working IPv6. Leave TTL low (300 seconds) while you set things up. Check from your own machine with dig +short buzz.example.com or nslookup. Do not continue until it returns the right address; certificate issuance depends on it, and a stale cached record is the single most common cause of a failed first deploy.
  4. Create a dedicated directory and Compose file. Make a folder such as /opt/buzz owned by your user, and write a compose.yaml there with a pinned image tag (avoid latest for anything you need to keep running), a named volume for persistent data, a restart policy of unless-stopped, and health checks if the image supports them. Bind the container's published port to 127.0.0.1 only, for example 127.0.0.1:3000:3000, so the app is reachable by the proxy and nothing else. Put secrets in a .env file next to the Compose file and restrict permissions to your user.
  5. Start the container and read the logs. Run docker compose up -d, then docker compose logs -f. Watch for migration output, a listening message, and any complaints about missing environment variables or model downloads. Then test locally with curl -I http://127.0.0.1:3000. If that fails, the problem is the container, not DNS or TLS, and fixing it now saves confusion later.
  6. Add TLS with a reverse proxy. With Caddy, a four-line Caddyfile containing your hostname and reverse_proxy 127.0.0.1:3000 obtains and renews certificates automatically. With Nginx, configure a server block, run Certbot, and set up renewal. Whichever you choose, raise your upload size limit if the app accepts audio files, since the defaults reject large requests with a 413 error that looks like a broken upload button. Reload the proxy and confirm HTTPS works from outside.
  7. Put access control in front of the app. Self-hosted apps often assume a trusted network, so do not rely on the app's own login for internet exposure. Add HTTP basic auth at the proxy for a quick gate, or forward authentication to an identity provider for something durable. For private use only, skip public exposure entirely and reach the app through a WireGuard or Tailscale mesh, binding the proxy to the mesh interface. Test that an unauthenticated request from outside your network returns a 401 or a login redirect rather than the app.
  8. Verify data survives a restart. Upload a short audio clip, confirm it processes, then run docker compose down and docker compose up -d. If your clip has vanished, your volume mapping is wrong and you are storing data inside the container. Fix the volume before you rely on the service.
  9. Set up backups and updates. Snapshot the VPS or back up the volume directory plus your .env and proxy configuration on a schedule. Update images deliberately: pull the new tag, review release notes, and restart, keeping the previous tag noted so you can roll back. Unattended upgrades for the host OS are worth enabling, but do not auto-update the app container.

Common Mistakes

Publishing the container on 0.0.0.0 and forgetting the firewall means the app is reachable by port even after the domain is locked down. Creating the DNS record after starting the proxy produces failed certificate orders and rate limits; propagate first, request certificates second. Using the distro's packaged Docker usually gives an older Compose version that rejects your file. Editing files inside a running container instead of the volume or image loses changes on the next restart. Leaving default upload limits in Nginx or Caddy breaks large file uploads. And treating the app's built-in login as sufficient protection on the open internet is the most damaging mistake of all.

Tips

Keep the TTL low until everything works, then raise it. Pin image tags and note the digest. Store configuration in version control without secrets. Use a subdomain rather than a path prefix, since many apps generate absolute URLs and break under subpaths. Check certificate expiry with a reminder or an external monitor. Run docker compose pull and restart on a schedule you control, and keep a short recovery note describing how to restore the volume on a fresh server.

Troubleshooting

If the browser shows a certificate error, confirm DNS resolves to the right IP from outside your network, then check the proxy logs for ACME errors and verify port 80 is open for the HTTP challenge. If the site loads but returns a 502 or 504, the proxy is fine and the container is not: check docker compose ps and the logs, and confirm the upstream port matches. If uploads fail only for large files, raise the proxy's body size limit and check any timeout settings. If transcription stalls, look at memory and disk: the container may be killed by the kernel, which shows as exit code 137. If logins loop, check that forwarded headers and cookie settings match the public hostname and that your identity provider callback URL uses HTTPS on the real domain. If a restart wipes data, revisit the volume mapping. When in doubt, test from inside the host with curl first, then from outside, then through the proxy, and the failing layer becomes obvious.

Frequently Asked Questions

Do I need a domain name?

Not strictly, but certificates require a hostname. You can use a free subdomain from a DNS provider, or use the IP with a self-signed certificate and accept browser warnings, which is awkward for everyday use.

Can I run it without Docker?

Yes, but Docker keeps dependencies isolated and updates predictable. If you install natively, you become responsible for the language runtime, system packages and service supervision.

How much RAM does transcription need?

It depends on model size and audio length. Plan for at least 4 GB with swap as a safety net, and watch memory during your first real job rather than guessing.

Is exposing it publicly safe?

Only behind authentication you trust. Use proxy-level auth or a mesh network; do not assume the app's own login is hardened against internet traffic.

How do I update it?

Change the pinned tag, review release notes, run docker compose pull and up -d, then test. Keep the previous tag for a fast rollback.

What happens to uploads after a restart?

They persist if they live in a named volume or bind mount. If they disappear, your data was written inside the container's writable layer and you need to correct the mount.