Hi,

I want to self-host my own web server for nextcloud, jellyfin, gittea, and a bunch of other things to move away from big tech. I’m planning on having a VM for each of those apps, and running each of them in docker. I could then use Apache or Nginx to access it from outside my network. I’ve looked into virtual machines and found that QEMU would be the best option, especially for using the CLI. How would your recommend setting it up?

I ask this because I don’t want my server being used in some kind of botnet or some shit like that. I don’t think that will happen, but I’d prefer to just employ good practices to begin with just in case. Is it even worthwhile having a virtual machine for each of those services anyway?

Keep in mind that my PC I’m using is scrapped from spare parts with an R5 3600 and 16GB of memory. If I need to upgrade it I’m happy to get a bit more, but it shouldn’t be an issue.

This is also my first post on programming.dev. I’m not sure if it is a good place to post this on but hopefully there are some people

Thanks!___

  • @[email protected]
    link
    fedilink
    2
    edit-2
    1 year ago

    You don’t need multiple vms, I did that in the past and it was a waste, just 1 vm with multiple dockers, or FreeBSD jails. Some applications are more sensitive and need extra isolation, but nothing you shows should.

    Nginx as the reverse proxy, look up the configuration but it works perfectly.\

    Your cpu and memory are perfect, you’re ready to roll.

    • Diseased FingerOP
      link
      21 year ago

      I’m glad to know that I don’t have to upgrade anything. I was just a bit worried that having a million different docker containers would be a bit of a strain on the CPU at least. Now that I think about it, I’m the only one using the server so any extra components will be pretty pointless.

      • @[email protected]
        link
        fedilink
        21 year ago

        Nah, docker containers are very low overhead, VMs are more overhead.

        Especially if you have no other users, you’re way overprovisioned, you’ll have tons of room to grow.