Lemmy is a self-hosted social link aggregation and discussion platform.
I made this git repo for personal use for testing purposes.
Follow these instructions to start a new Lemmy instance using Linux and Docker.
Note that federation is not supported and there's no email server.
Clone the repo
git clone https://github.com/salif/lemmy-onion-service.git
cd ./lemmy-onion-service/
Use mkp224o to generate vanity address. Then run:
# mkp224o
mkdir -p ./volumes/lemmytor/
change 'example.onion' to generated address
cp example.onion/* ./volumes/lemmytor/
sudo chown -R 100:100 ./volumes/lemmytor
sudo chmod -R u+rwX,og-rwx ./volumes/lemmytor
mkdir volumes/pictrs
sudo chown -R 991:991 ./volumes/pictrs
and
cp ./templates/.env .env
Edit .env
file (domain is in volumes/lemmytor/hostname
) and run:
cp ./templates/nginx_internal.conf nginx_internal.conf
cp ./templates/lemmy.hjson lemmy.hjson
source .env
sed -i -e "s/_SED_1/$domain/g" lemmy.hjson
sed -i -e "s/_SED_2/$postgres_password/g" lemmy.hjson
sed -i -e "s/_SED_1/$domain/g" nginx_internal.conf
Start it:
sudo docker-compose up -d