I’m trying to figure out how to run yunohost in an LXC container, so I can run multiple yunohost instances on one VPS (and also make backups easier).
I am reading about LXD and LXC and see many possible ways to do this. I would like to know what people recommend? What do you like and what is the easiest way?
So far I have LXD installed on Ubuntu on a Digital Ocean droplet. I was able to launch a debian:buster container using LXD, and install yunohost within the container.
Now I am trying to figure out how to make the container accessible to the public internet.
I saw a few ways so far:
- using a reverse proxy such as haproxy or nginx, which routes different domains, to containers (but I worry this means I would have to do extra configuration for every domain… or not be able to take advantage of yunohost handling HTTPS certificates… I would rather just have a public IP address, one for each container)
- using macvlan like in this tutorial
- using a bridge like in this tutorial
- using LXC without LXD like @benou does here
any advice appreciated, before I go down endless rabbit holes