this post was submitted on 17 Jun 2023
50 points (89.1% liked)

Selfhosted

39473 readers
418 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
 

So I've been scratching my head for two days trying to get my own lemmy server up and running.

I have limited server hosting experience but I used to design html websites back in high school through wordpress and was able to successfully set up my own mastadon instance so I'm pretty decent at following instructions, but what keeps tripping me up is ansible and how the heck it works.

The instructions (https://github.com/LemmyNet/lemmy-ansible) are telling me to install ansible on my local machine using python3. On my windows machine I installed ansible using python but when i type the ansible command into terminal it gives me no command found. Is linux required as a host machine?

I have an account over at digitalocean and I'm willing to host my own ubuntu machine over there to get my instance running but I cannot for the life of me figure out how ansible is supposed to set up a server on my windows machine. ANY help would be GREATLY appreciated.... I'm tearing my hair out and feel incredibly stupid right now :D

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

Assuming docker and docker compose are installed on a Linux machine and you have some kind of front end proxy with a valid cert available, just create a folder you have write access to and unzip the file from here: https://cloud.socdojo.com/s/yrATyMZtNTFiLjY

There should be 3 files in it, docker-compose.yml, lemmy.hjson, and nginx.conf

Notable areas to update:

Line 55 of docker-compose.yml is where any attachments of posts get stored, in the case of my files /mnt/NAS/Lemmy where they get offloaded to a remote NAS, change as needed, but the folder should be set with a 'sudo chown 991:991 /mnt/Lemmy' to allow pictrs to write to it. This folder should be created first and the permissions changed before bringing things up.

Lines 20 of nginx.conf and line 17 of lemmy.hjson should match as your domain name, I don't know if the nginx name actually matters honestly but it works for me.

Lines 44 of docker-compose.yml and line 38 of lemmy.hjson should match for your database password

Line 9 of docker-compose.yml the first number is whatever you want your inbound proxy port to be, in the config it's set to 1234

Lines 20 of the docker-compose.yml and line 12 of nginix conf should have the same port number, set as 1234 in these files.

Any other fields tagged as 'ChangeMe' are pretty self explanatory and don't have to match anywhere else, Just updated them to be what you need for email, admin account info, domain hostname, a site title, etc.

After that it should all work, just point your front end proxy at the port you set in the docker compose and away it goes.

docker compose up -d