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?

  • Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    28
    ·
    edit-2
    8 months ago
    • 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.
    • plague-sapiens@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 months ago

      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 :)