selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Lemmy logo

Self-host Lemmy

0.19.21

Federated link aggregator and forum for your own server

BetaOpen SourceAGPL-3.0
Updated2 weeks ago
LanguageRust
Setup difficultyModerate
MobileNative app
ThemeDark mode
Stars
14 669
RAM
roughly 150 MB in the default Docker installation
Ports
8536 (lemmy_server listens for incoming HTTP requests (clients and incoming federation)), 10002 (Prometheus metrics endpoint (bound to 127.0.0.1 by default))
Requires
Lemmy-UI, PostgreSQL
Docker
dessalines/lemmy
Install with Docker Compose
Lemmy web interface showing the main post feed (desktop)

What is Lemmy?

Lemmy is a decentralised discussion platform for the fediverse: users subscribe to communities, post links and text, then vote and comment, in a way reminiscent of Reddit, Lobste.rs or Hacker News — but every server stands alone and all of them federate, like email. A registered user on one instance can follow communities and talk to users on any other instance. The Rust backend stores data in PostgreSQL, delegates image hosting to pict-rs, and serves a separate lemmy-ui web frontend; the whole stack runs on very little memory and comfortably on a Raspberry Pi. Features include up/downvotes with full scores, threaded comments, public moderation logs, site admins and community moderators, private messaging, email notifications, RSS/Atom feeds, NSFW labeling, avatars, themes (light, dark, solarized) and interface translations in more than 30 languages. You install it with Docker Compose or Ansible behind a reverse proxy (TLS is required for federation). It is free, AGPL-licensed software funded only by donations and an NLnet grant; the 1.0 line is currently in beta (1.0.0-beta.2), while the 0.19 series is the stable release most instances run.

Lemmy alternatives

All self-hosted alternatives to Lobste.rs → All self-hosted alternatives to Reddit →

Should you self-host Lemmy?

Lemmy scores 75/100 on selfhost.directory (how scoring works) and ranks #3 of 75 in Social Networks & Forums. It has 14 669 GitHub stars, +55 in the last 30 days.

It shipped 3 stable releases in the past year. The latest, 0.19.21, came out on 26 October 2026. New versions land roughly every 2 months.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is AGPL-3.0-licensed and written mostly in Rust.

Its closest alternative on selfhost.directory is Redlib (66/100, 3 996 stars). Lemmy scores higher overall. See Lemmy vs Redlib side by side.

Features

  • Federated communities (fediverse)
  • Image uploads and link previews
  • Internationalization (>30 languages)
  • Link and text posts with upvotes/downvotes
  • Moderation tools with public mod logs
  • Notifications with email delivery
  • NSFW content labeling
  • Open API for third-party apps
  • Private Messaging
  • Runs on low-powered hardware (arm64 / Raspberry Pi)
  • Similar-post search when posting
  • Threaded comments
  • User data deletion
  • User settings export/import

Lemmy README

How to install Lemmy

Install Lemmy with Docker Compose

Environment variables
LEMMY_CONFIG_LOCATION
mkdir lemmy
cd lemmy

Then download default config files:

wget https://raw.githubusercontent.com/LemmyNet/lemmy-docs/main/assets/docker-compose.yml
wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/examples/config.hjson -O lemmy.hjson
wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx_internal.conf
wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/files/proxy_params

Edit docker-compose.yml and lemmy.hjson to replace all occurrences of {{ domain }} with your actual Lemmy domain, {{ postgres_password }} with a random password. ...

mkdir -p volumes/pictrs
sudo chown -R 991:991 volumes/pictrs

Finally, run: docker compose up -d

Requires docker and docker-compose (>=2.0); a reverse proxy with TLS is needed for federation.

How to configure Lemmy

  • smtp_serverHostname and port of the smtp server
  • smtp_loginLogin name for smtp server
  • smtp_passwordPassword to login to the smtp server
  • smtp_from_addressAddress to send emails from
  • tls_typeWhether or not smtp connections should use tls

    values: none, tls, or starttls

Lemmy releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Social Networks & Forums

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…