I use ubergeek77 to deploy Lemmy instance on my Debian server, however I don’t know how to make a second one on the same machine. Do you have any ideas how I can achieve that with this method of deployment?
You must log in or # to comment.
- Point both domains to that machine (each lemmy instance requires a unique domain/subdomain).
- Use Separate docker stacks for each instance. Map the API and UI ports to different ports on the host machine in each stack.
- Use Nginx (or whatever reverse proxy) to create virtual hosts for each domain.
- Proxy-pass each virtual host to the correct docker stack/port.
This. You can create two seperate networks for the nginx instance (I would recommend NPM (nginx proxy manager)) and use one each for connecting from the lemmy instances to the reverse proxy. Traefik is nice too, that was my first rp used for docker and it integrates quite nicely to the docker environment :)
you only have to start a second docker cluster with a different public port