Self-hosting means running a service on a server you control instead of using a provider's hosted version: a website, a Git forge, a CI runner or a target for backups. The server can be a rented VPS or a machine at home. Data and configuration stay with you, and so does the work a provider would otherwise do: updates, access, TLS certificates, coming back after a reboot. This topic collects setups and guides for running such services.
- Covered in
-
- Astro SSR with Podman: From Local Setup to VPS Astro with the Node standalone adapter in a two-stage Podman container, run locally with the same compose file that later goes to the VPS.
- Caddy as Reverse Proxy with HTTPS and a Canonical Host Caddy in front of a container on a VPS: automatic TLS from Let's Encrypt, www redirected to the bare domain, the app port closed to the outside.
- Deploying Astro SSR to a VPS with Podman Moving the Astro SSR container to a fresh Debian VPS: Podman from the distro packages, a read-only deploy key and the same compose file.
- Forgejo on Debian 13 with Rootless Podman Forgejo as a rootless Podman container under its own user: a Quadlet for systemd, Caddy in front, SSH on port 2222 and the problems I ran into.
- GitHub Deploy Key on a VPS A read-only SSH deploy key so a VPS can pull from GitHub without a personal access token or a password.
- Initial VPS Setup on Debian First steps on a fresh Debian VPS: current packages, automatic security updates, a non-root user and SSH with keys only.
- Installing Podman Locally and on a VPS Podman with podman-compose on macOS and on a Debian or Ubuntu server, with the same commands on both sides and a first-run check.
- Keeping a Compose Stack Running After a Reboot A systemd unit that starts a Podman compose stack on boot, so a website comes back by itself after the VPS restarts.
- Mirroring GitHub to Codeberg A GitHub Actions workflow that mirrors branches and tags to Codeberg with plain git push over SSH, without a third-party action.
- Obsidian to VPS Pipeline: Sync, Pull and Redeploy One shell script on the Mac that pulls the site repository on the VPS, rsyncs the posts from the Obsidian vault and rebuilds the Astro container.
- Operating Astro SSR in Production with Podman A short runbook for the Astro container on the VPS: start and stop, health checks, the four-command update, rollback by commit and Caddy checks.
- Setting Up a Forgejo Actions Runner Push-to-deploy with a self-hosted Forgejo Actions runner on the same VPS: own user, no Docker, narrow sudo rights and secrets kept in Forgejo.
- Triggering VPS Deploys with GitHub Actions A GitHub Actions workflow that opens an SSH session to the VPS on every push to main and lets the server pull and rebuild itself.
- Updating the Website Repository on a VPS A repeatable update flow on the VPS: check the working tree, pull with --ff-only, rebuild with podman-compose, verify, roll back, all in one script.
- Visitor Statistics from the Server Log with Matomo A self-hosted Matomo fed hourly from Caddy's access log: no tracking script, no cookies, masked IP addresses.
- Tags