this post was submitted on 02 Jun 2023
5 points (85.7% liked)

General Programming Discussion

7746 readers
18 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 5 years ago
MODERATORS
 

First off, I'm totally new here (Reddit refugee).

But I guess we will see an endless September after July 1st.

How can we (I?) create an "onboarding" server? or in my case: a lemmy server for (people interested in) programmimg.

Let's say I have some (pick one


or all):

  • digital ocean droplet (vps)
  • herzner vps
  • k8s cluster
  • ...you get the point

How do I get my foo.bar Lemmy server running?

  • is there a docker-compose.yml or helm chart to get the services running on my droplet/cluster?
  • how do i connect my server to other lemmy servers in the fediverse?
  • are moderation tools available, or do i have to build them on my own? (are there existing repos i can join, to prevent reinventing the wheel)
  • is there documentation available for that? If not: on what repo can I make pull requests for improving the docs? (i like writing my documentation in markdown + "material for mkdocs" that generates the github/gitlab/whatever pages)

thanks in advance :thumbs-up:

top 11 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

Hi! First comment on Lemmy (or any social media.) I run bubblesthebunny.com off this repo: https://github.com/BubblesTheBunny/lemmy

It requires Digital Ocean and Cloudflare, but it works pretty well. I use a pretty small VM though, so if you're looking for something that can handle 1000s of users you'll need to modify it slightly.

I yoinked a ton from the https://github.com/LemmyNet/lemmy-ansible repo, so if you want to roll your own that's a good place to start.

[–] [email protected] 1 points 1 year ago

I just set up my instance using the Ansible playbook. It takes a few manual configuration steps, and the rest is automatic provided you can SSH into the server and get root access.

[–] [email protected] 1 points 1 year ago

I launched mine using the lemmy-ansible repo: https://github.com/LemmyNet/lemmy-ansible It's quite straight forward to follow and works out of the box without much effort required, good luck!

[–] [email protected] 1 points 1 year ago

Officially https://join-lemmy.org/docs/administration/install_docker.html

There is also this https://github.com/ubergeek77/Lemmy-Easy-Deploy/tree/main

I rolled my own docker-compose.yml because I host other services using Caddy as well

[–] [email protected] 1 points 1 year ago

There's official documentation for how to get up and running quickly using Docker here: https://join-lemmy.org/docs/en/administration/install_docker.html

I used that as a reference for my own server's setup (which is heavily modified appropriately for my own environment).

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

Does it affect if I run lemmy inside a tailscale machine with all inbound ports closed?

[–] [email protected] 1 points 1 year ago

Welcome, fellow refugee. I'm only lurking in these topics out of interest, I'm not in a position to host.

But you might find these communities interesting:

They are all about self hosting in general, not self hosting lemmy specifically. But lemmy is a topic among others. The last comm seems to be about specifically self hosting lemmy, but has no content (yet) from my point of view. Which I find sad, as I'm also mostly interested in self hosting lemmy as a topic.

There is a docker install guide in the docs.

[–] [email protected] 0 points 1 year ago (1 children)

Does anybody know the hardware requirements? A RaspberryPi, some small VPS with 1 cpu and 1gb ram, or 4 core vps with 16 gb ram? Is the traffic cache-able by cloudflare?

[–] [email protected] 0 points 1 year ago (1 children)

In my other comment I mentioned some specs... not sure what it's like on the larger instances, but probably not too bad.

Not sure if it can be cached by Cloudflare... probably depends on what you want to cache.

[–] [email protected] 1 points 1 year ago

Not sure if it can be cached by Cloudflare

Every time I've turned on caching on my instance, it goes into a redirect loop and doesn't connect. I've tried searching everywhere to see if it's just something I've done wrong (which is how I found this comment) but can't find any tutorials or anything on caching with cloudflare on lemmy. I'm guessing it's just not possible.