Highly available Docker apps
Authentik, Vaultwarden, Gitea and friends on two Docker hosts at two sites with automatic failover: etcd with a witness, PostgreSQL with Patroni, a follower, a file sync, Traefik and HAProxy - including everything that went wrong.
- Part 1
Highly available Docker apps - Part 01 - The plan: two hosts, two sites and a witness
My identity provider, password manager and git server on two Docker hosts at two sites, with automatic failover and no Kubernetes: what HA means here, the pieces, and why a witness.
- Part 2
Highly available Docker apps - Part 02 - The witness: WireGuard and a three-member etcd
The referee of the whole setup: a small WireGuard network to a VPS and a three-member etcd across two sites - and the first gotcha, which makes Patroni wait forever.
- Part 3
Highly available Docker apps - Part 03 - PostgreSQL with Patroni in Docker
One PostgreSQL 18 image with Patroni for every app: synchronous replication between two sites, the settings that matter, and the commands you need.
- Part 4
Highly available Docker apps - Part 04 - Making the apps follow their database
A follower that starts each app where its database is the primary, using Compose profiles in .env, and a file sync with a key that can only do one thing.
- Part 5
Highly available Docker apps - Part 05 - Getting the traffic to the right host
Traefik with health checks, split-horizon DNS for internal clients, and HAProxy on a VPS passing TLS through for the public names - with the real client address intact.
- Part 6
Highly available Docker apps - Part 06 - Moving the apps in, and everything I learned
Authentik from PostgreSQL 16, Vaultwarden from SQLite, Gitea from MySQL and Linkwarden into the HA setup, plus the lessons from the hosts and all 23 gotchas in one list.