43 practical guides
Self-Hosting Guides for Developers
Self-hosting means running your applications on infrastructure you manage, usually a rented VPS. Start with the learning order, then deploy a real application, secure the server, run PostgreSQL in Docker, optionally run your own private network, check it against the checklist, and practice recovering it.
Start here
How to Learn Self-Hosting as a Developer
Take one small app through the full cycle on a rented VPS. The order to learn self-hosting in, what to host first, and how to tell each stage is done.
Read the complete guide →Explore Self-Hosting
Browse all .NET guides →Learn and deploy
Learn the order, choose a platform, and take an application from a repository to a public HTTPS domain.
- How to Learn Self-Hosting as a Developer
9 min read
- VPS vs PaaS vs Cloud: What It Costs and What You Take On
14 min read
- VPS vs PaaS SLAs and Responsibilities: Who Owns What
7 min read
- Dokploy vs Coolify: Which Self-Hosted PaaS Should You Use?
7 min read
- How to Deploy a .NET App to a VPS With Dokploy
8 min read
Secure the server
Close the ports Docker leaves open, patch and reboot on purpose, and check whether a new CVE affects you.
- Ubuntu Server Hardening Checklist for Docker Hosts
8 min read
- Docker Bypasses UFW: Why It Happens and How to Fix It
9 min read
- Cloud Firewall vs UFW: Which One Protects Your VPS?
6 min read
- Unattended Upgrades on Ubuntu: Patches, Reboots, and Docker
7 min read
- How to Check if Your Ubuntu Server Is Affected by a CVE
7 min read
- Do You Need Fail2ban? What It Catches on Ubuntu and Docker
8 min read
Run PostgreSQL in Docker
Keep the database private, fix connection and password errors, reach it over SSH, size its memory, and handle dumps, upgrades, and a full disk.
- Is It Safe to Expose Postgres Port 5432 in Docker?
11 min read
- Docker Compose Connection Refused to Postgres: Causes, Tested
11 min read
- Docker Postgres 'password authentication failed': 7 Causes
11 min read
- Change the Postgres Password in Docker Compose: Failed Logins per Procedure
11 min read
- SSH Tunnel to Postgres in Docker Without Exposing 5432
11 min read
- SSH Tunnel Errors: 'administratively prohibited' Explained
11 min read
- Postgres 'Could Not Resize Shared Memory Segment': shm_size vs shared_buffers in Docker
11 min read
- Does pg_dump Lock Tables? What a Backup Does to Live Data
11 min read
- Upgrade Postgres in Docker: 17 to 18 Without Losing Data
11 min read
- Postgres Collation Version Mismatch in Docker: Is Your Data Safe?
11 min read
- Postgres Disk Full: What Fails, What Frees Space
11 min read
- Docker 'No Space Left on Device': What Is Safe to Delete
11 min read
Run your own private network
Run the Tailscale control server yourself, limit which machines reach which ports, add a web UI, and back it all up.
Run a coding agent on a server
Run Claude Code unattended in a dev container, limit what it can reach, keep it running over SSH, and steer it from your phone.
- Claude Code Sandbox vs Dev Container: Which One on a VPS?
7 min read
- Run a Claude Code Dev Container on a Server Without VS Code
7 min read
- Claude Code Login in a Dev Container on a Headless Server
6 min read
- Claude Code Devcontainer Firewall: What Gets Through and Why NuGet Breaks
6 min read
- Claude Code --dangerously-skip-permissions: What It Skips and What Still Applies
7 min read
- Dev Container Git Hooks: How Code in the Container Runs on Your Host
5 min read
- Run Claude Code in tmux So an SSH Drop Does Not Orphan It
5 min read
- Drive Claude Code on Your VPS From Your Phone, With No Open Port
7 min read
Operate and recover
Check the deployment, keep it safe to change, get backups off the server, notice when they stop, and prove you can restore its data.
- VPS Deployment Checklist: 24 Checks Before You Go Live
10 min read
- Operating .NET Apps on Dokploy: Backups, Recovery, and Proxy Safety
10 min read
- Off-Site Backups for a Docker VPS: What Breaks and How to Catch It
16 min read
- How to Verify a pg_dump Backup: Why --list Is Not Enough
7 min read
- Can a Stolen Backup Key Delete Your Backups? Keys and Bucket Locks
6 min read
- How to Detect When a Backup Silently Stops Running
9 min read
- Dokploy Postgres Backups: What Its Job Does When a Dump Fails
4 min read
- How to Test a Postgres Backup With a Restore Drill
9 min read
From the newsletter
- Build Your Own VPN With Tailscale
Keep SSH, deployment panels, and databases off the public internet.
- The System Design Behind My New SaaS
How Katabench runs across a small fleet of servers managed with Dokploy.
- Self-Hosting at Home With Cloudflare Tunnel
Publish a service from home hardware without opening inbound ports.
- How I Migrated My Website to Cloudflare and Saved $228
A real migration, including moving nightly database backups to R2.
- Containerize Your .NET Applications Without a Dockerfile
Build the container image a deployment platform runs, using the .NET SDK.
Go deeper
Pragmatic Self-Hosting: Foundations
A self-hosting course that takes one application through provisioning, private administration, automated releases, and a backup restore on a single VPS.
See the self-hosting course →How to choose a self-hosting course →