this post was submitted on 30 Dec 2024
35 points (90.7% liked)

Selfhosted

40862 readers
736 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] renegadespork@lemmy.jelliefrontier.net 3 points 3 days ago* (last edited 3 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.