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.

  1. How to Learn Self-Hosting as a Developer

    9 min read

  2. VPS vs PaaS vs Cloud: What It Costs and What You Take On

    14 min read

  3. VPS vs PaaS SLAs and Responsibilities: Who Owns What

    7 min read

  4. Dokploy vs Coolify: Which Self-Hosted PaaS Should You Use?

    7 min read

  5. 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.

  1. Ubuntu Server Hardening Checklist for Docker Hosts

    8 min read

  2. Docker Bypasses UFW: Why It Happens and How to Fix It

    9 min read

  3. Cloud Firewall vs UFW: Which One Protects Your VPS?

    6 min read

  4. Unattended Upgrades on Ubuntu: Patches, Reboots, and Docker

    7 min read

  5. How to Check if Your Ubuntu Server Is Affected by a CVE

    7 min read

  6. 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.

  1. Is It Safe to Expose Postgres Port 5432 in Docker?

    11 min read

  2. Docker Compose Connection Refused to Postgres: Causes, Tested

    11 min read

  3. Docker Postgres 'password authentication failed': 7 Causes

    11 min read

  4. Change the Postgres Password in Docker Compose: Failed Logins per Procedure

    11 min read

  5. SSH Tunnel to Postgres in Docker Without Exposing 5432

    11 min read

  6. SSH Tunnel Errors: 'administratively prohibited' Explained

    11 min read

  7. Postgres 'Could Not Resize Shared Memory Segment': shm_size vs shared_buffers in Docker

    11 min read

  8. Does pg_dump Lock Tables? What a Backup Does to Live Data

    11 min read

  9. Upgrade Postgres in Docker: 17 to 18 Without Losing Data

    11 min read

  10. Postgres Collation Version Mismatch in Docker: Is Your Data Safe?

    11 min read

  11. Postgres Disk Full: What Fails, What Frees Space

    11 min read

  12. 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.

  1. Self-Hosted Tailscale With Headscale: Setup and Outage Tests

    14 min read

  2. Headscale ACL Policy: What It Blocks, Tested

    6 min read

  3. Headplane Setup Without the Docker Socket, Tested

    7 min read

  4. Headscale Backup and Restore: What Each Loss Takes

    9 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.

  1. VPS Deployment Checklist: 24 Checks Before You Go Live

    10 min read

  2. Operating .NET Apps on Dokploy: Backups, Recovery, and Proxy Safety

    10 min read

  3. Off-Site Backups for a Docker VPS: What Breaks and How to Catch It

    16 min read

  4. How to Verify a pg_dump Backup: Why --list Is Not Enough

    7 min read

  5. Can a Stolen Backup Key Delete Your Backups? Keys and Bucket Locks

    6 min read

  6. How to Detect When a Backup Silently Stops Running

    9 min read

  7. Dokploy Postgres Backups: What Its Job Does When a Dump Fails

    4 min read

  8. How to Test a Postgres Backup With a Restore Drill

    9 min read

From the newsletter

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 →