Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 2.04 KB

File metadata and controls

42 lines (33 loc) · 2.04 KB

lemmy-docker-compose

Docker compose managed lemmy instance meant to be used behined reverse proxy

Docker Images

Requirements

  • Docker
  • docker-compose
  • A reverse proxy

Reverse Proxy

You will need to have a reverse proxy setup. I use a variant of jwilder/nginx-proxy. Traefik and Caddy2 are popular choices.

See administration/install_docker for Lemmy docs on setup and configuration.

Initial Setup

  1. Copy samples/env to ./.env and set variables
  2. Copy samples/postgres.env.secrets and samples/pictrs.env.secrets to ./ and add the postgres and pictrs passwords respectively
  3. Copy samples/config.hjson and samples/postgresql.conf to config and change appropriately
  4. Do required setup for your pre-existing reverse proxy, see the labels in the docker-compose.yml for an example for traefik
  5. Run setup/init.sh

Updating

  1. Update image tags in your .env file
  2. docker-compose pull
  3. docker-compose down
  4. docker-compose up

Reference

Lemmy Docs

General Docs