this post was submitted on 29 Jul 2023
454 points (95.4% liked)

Selfhosted

40183 readers
1089 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 1 year ago
MODERATORS
 

First post from my new, self-hosted, personal instance. Feels good!

you are viewing a single comment's thread
view the rest of the comments
[–] reflex_aliens@lemmy.ml 25 points 1 year ago (4 children)

Nice work dad. How difficult was it? I’ve been thinking about going down that road but concerned about the overhead.

[–] Osayidan@social.vmdk.ca 29 points 1 year ago (1 children)

If you host the instance just for your own account to be under your control there's hardly any overhead. I'm running it in docker in a debian 12 VM with 1 GB ram, 1 virtual CPU and 50GB virtual disk. Haven't had any issues.

[–] some_guy@lemmy.sdf.org 12 points 1 year ago (2 children)

This is valuable info. Is there a Docker image that's preconfigured for it or did you install on a LAMP image or other third way?

[–] dan@upvote.au 12 points 1 year ago* (last edited 1 year ago) (1 children)

There's a few Docker images, since it needs a database and some other services, and the best practice with Docker is one container per service. The documentation is here: https://join-lemmy.org/docs/administration/install_docker.html

I removed the Nginx server from the docker-compose.yml though. I already had an Nginx server running on the same server, so I just added the config to the existing server instead.

[–] maxgry@lemmy.iqecke.de 6 points 1 year ago (1 children)

I also installed my private server and setting everything up was quite easy :) I left nginx as is and just put everything behind my Caddy as reverse proxy

[–] dan@upvote.au 0 points 1 year ago* (last edited 1 year ago)

I've been meaning to try Caddy and Traefik. I've been using Nginx for so long and don't really have a reason to switch though.

For Lemmy, I didn't see a major advantage of running a reverse proxy behind another reverse proxy which is why I'm not running Lemmy's Nginx container.

[–] Osayidan@social.vmdk.ca 3 points 1 year ago

I went with docker but back then their documentation for it was trash and hardly worked. Had to trial and error it until it was functional. Hopefully they fixed that by now.

[–] orca@orcas.enjoying.yachts 7 points 1 year ago* (last edited 1 year ago) (1 children)

If you do end up going for it, Lemmy Easy Deploy is the tool I used and it’s awesome. I had no success with any other guide.

It was pretty easy with that tool. The overhead isn’t too bad but I recommend not going below 2GB of memory. I rode along on 1GB for a little while to see how things went, and it topped out quite a bit. I pay a little extra for automatic backups too which is worth the peace of mind. It’s about ~$18/month with Digital Ocean.

[–] SeeJayEmm@lemmy.procrastinati.org 5 points 1 year ago (1 children)

Damn. I paid racknerds $25/yr for 2cpu and 2.5gb of RAM. Runs great, and rather lean to be honest.

[–] orca@orcas.enjoying.yachts 5 points 1 year ago (2 children)

Wow, killer price! I need to check that out. I’ve had my Digital Ocean account for so long I’m on autopilot lmao.

[–] SeeJayEmm@lemmy.procrastinati.org 3 points 1 year ago (1 children)

I found out about it here. There was a thread a few weeks back. Search for racknerds in this community.

I think they're still running their 4th of July special.

[–] fuser@quex.cc 3 points 1 year ago (2 children)

Thanks for this link! I'm on Vultr, which is good, but it's around $7 a month with only 25GB of storage. Think I'll pick up one of the Ethernet Servers deals.

[–] derock@lemmy.derock.dev 3 points 1 year ago (1 children)

There's a whole community around finding affordable hosting for a variety of use cases. https://lowendtalk.com/ I found my current provider there and on Black Friday they were offering an exclusive lowendtalk deal (called the 6666) where I pay $66 every 2 years and get 6gb ram 6vcpus and 66GB disk and 6tb transfer on a 10gbps line. these smaller hosts won't have all the same features digital ocean and vultr have like 1-click templates.

[–] orca@orcas.enjoying.yachts 1 points 1 year ago

I honestly don’t really need any of the 1-click stuff. I pretty much live in the command line, so the main thing is bringing down cost for the future.

That’s a really good deal! Thanks for the heads up. I’m gonna start looking around.

[–] phil@l3mmy.com 5 points 1 year ago

I found this website to be pretty helpful in terms of walking you through a docker- based install:

https://www.bentasker.co.uk/posts/blog/general/running-a-lemmy-social-networking-instance-using-docker-compose.html

The official docs are a little sparse at times.

[–] CrimeDad@lemmy.crimedad.work 3 points 1 year ago (2 children)

Well, I couldn't figure out Docker because I'm a newb, so I decided to give the app in Yunohost a try. I was reluctant at first, because when I last checked the available version of Lemmy was kind of old and image uploads were broken. However, when I checked today, the version was 0.18.2 and the disclaimer about the broken feature was gone. So, I gave it a try and it just worked. I do still have to test image uploads.

We'll see about overhead. I've got it running on a VM to which I've allocated 500GB. The VM is on an older i5 desktop with 16GB of RAM. I've already been running a Pixelfed instance for a couple of weeks and so far so good.

[–] orca@orcas.enjoying.yachts 3 points 1 year ago (2 children)

That should be plenty of power and storage. I’m running on a Digital Ocean droplet that has 2GB of memory, 25GB disk space, and an Intel vCPU (the “premium” option). Hums right along.

[–] outdated_belated@lemmy.sdf.org 2 points 1 year ago (1 children)
[–] orca@orcas.enjoying.yachts 2 points 1 year ago

Thank you! I’m happy with it lol. It’s kinda funny knowing that I paid for the domain enjoying.yachts. I’m glad it was at least cheap!

[–] CrimeDad@lemmy.crimedad.work 1 points 1 year ago

Oh good! That is reassuring.

[–] schmorpel@slrpnk.net 2 points 1 year ago

Great to know, I'm on yunohost and considered creating my own instance. I guess I'll get to that when I take the step from rented VPS to home-run server.