Best approach for Docker resilience with two hosts - eviltoast

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.

  • eluvatar@programming.dev
    link
    fedilink
    English
    arrow-up
    10
    ·
    1 year ago

    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.

    • Sim@lemmy.nzOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

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

      • eluvatar@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

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

        Take a look at Rancher for actually running a cluster.