I am new to the world of self hosting a site, however I do currently have a web application thing successfully running on a digital ocean droplet with a free domain name.

I would like to attempt to additionally host a lemmy instance and was planning on following this guide: https://github.com/ubergeek77/Lemmy-Easy-Deploy?tab=readme-ov-file

Ideally I would like both of these things to run on the same ubuntu droplet. In my mind this should technically be possible with using docker to give each thing their own little corner being a good way to approach it.

However, I think the easy deploy lemmy uses caddy and the other thing I have users nginx, can both of these things work alongside each other fine if they have their own ports?

Is this a good way of approaching this or should I just make the lemmy instance its own droplet and go from there? Should I use something other than the lemmy easy deploy?

Do you have any other advice?

Thanks, if this is the wrong community for this can someone point me to the right one, I’m relatively new to lemmy.

  • Max-P@lemmy.max-p.me
    link
    fedilink
    English
    arrow-up
    12
    ·
    4 days ago

    I would probably just skip the Lemmy Easy Deploy and just do a regular deployment so it doesn’t mess with your existing. Getting it running with just Docker is not that much harder and you just need to point your NGINX to it. Easy Deploy kind of assumes it’s got the whole machine for itself so it’ll try to bind on the same ports as your existing NGINX, so does the official Ansible as well.

    You really just need a postgres instance, the backend, pictrs, the frontend and some NGINX glue to make it work. I recommend stealing the files from the official Ansible, as there’s a few gotchas in the NGINX config as the frontend and backend share the same host and one is just layered on top.

    • OhVenus_Baby@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      3 days ago

      I’m part of the crowd just browsing and have no idea what you just said. Cheers though. You sound like you know what your talking about.

      • Max-P@lemmy.max-p.me
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 days ago

        If you look at my username you’ll see I do run my own instance so I’ve gone through the process :)

  • Scrubbles@poptalk.scrubbles.tech
    link
    fedilink
    English
    arrow-up
    12
    ·
    4 days ago

    They can if they’re using different ports, however, I’d recommend just running Lemmy through the nginx server and route the data to each as needed. There’s nginx configuration in the guide.

    • hour_power@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      This seems incredibly intuitive, effective, and might exactly be what I’m looking for. Thanks.

      • abeorch@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        Its not perfect. Im still new to it but have a go. Have you got a community ot two you would like to create?

  • renegadespork@lemmy.jelliefrontier.net
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    4 days ago

    If you’d like to run them on the same Ubuntu VM, I’d recommend deploying them using docker, as that will make avoiding port conflicts much easier as well as keeping each application isolated.

    You should also look into a reverse proxy so you can reroute traffic from your desired subdomain to non-standard ports (otherwise you’ll need to specify ports in the URL which gets weird). I recommend Nginx Proxy Manager which can also run in docker.

    You could spin up another VM for Lemmy if resources get tight and you don’t mind the extra cost.