Best approach for Docker resilience with two hosts

Sim@lemmy.nz to Selfhosted@lemmy.world – 33 points –

I'm running Docker on Ubuntu server; around 50 containers running, most admin via Portainer. Configuration files and small databases for container applications are stored on the local SSD, media and larger files are stored on a NAS.

NAS data and the container folders are backed up.

I have a second identical machine doing nothing. What would you recommend researching to add resilience to this setup? Top priority is quick and easy restoration should the SSD fail - everything else is relatively easy to replace.

I'll create an SSD RAID but I like the idea of a second host.

16

You are viewing a single comment

Container orchestration is what you're looking for. Kubernetes is the most popular, but it might be overkill it's hard to say based on your setup. However it's definitely useful experience to know how to run it.

Thanks. Could I achieve a simple 2-host solution with Kubernetes though?

Nothing about k8s is simple. But yes you can achieve that.

Take a look at Rancher for actually running a cluster.