this post was submitted on 27 Jun 2023
32 points (97.1% liked)

Lemmy Support

4650 readers
9 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
32
streamlined docker compose (lemmyhelp.tet42.org)
submitted 1 year ago* (last edited 1 year ago) by tet42@ka.tet42.org to c/lemmy_support@lemmy.ml
 

I am working on writing up some quality help/instructions for Lemmy instance admins. This is targeted toward those that are newer to Lemmy and Docker, but even those that know a thing or two might learn something from me. I have been a sysadmin for over 20 years, so I know some things.

I thought I'd share the first complete page I have written. I'd love some feedback if you have any to share.

Be seeing you.

you are viewing a single comment's thread
view the rest of the comments
[–] chiisana@lemmy.chiisana.net 4 points 1 year ago (1 children)

I recommend using override feature in docker compose instead of editing the compose directly. That way it will be easier to pull updated file from the GitHub and receive updates.

May be an interesting idea to incorporate some of my findings in your doc as well: https://lemmy.chiisana.net/post/264

[–] tet42@ka.tet42.org 5 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks for your comment, but I don't see much value in pulling a new copy of the docker-compose.yml from the Lemmy GitHub. The only things I would be updating when Lemmy updates is the tag/version. If they added new environment variables some time in the future I could certainly take a look at their updated compose file to see the changes but I wouldn't want to pull it down and replace my custom compose.

I specifically don't care for their (Lemmy devs) choices for logging, docker networking, and the built in nginx, so removing and simplifying all that was my main goal. Everyone has their own way of doing things, and this is mine.

I will probably take a look at your Traefik configs and add them as a separate document for those that don't want to use NPM. My goal is to add a subsection for most of the current revproxy choices.

[–] chiisana@lemmy.chiisana.net 3 points 1 year ago

Yeah. I found the official compose… let’s say leaves a lot to desire… so we had slightly different approaches to similar problems. I don’t want their built in nginx so I override it with a simple alpine that quits. But I also chose to use override for exactly the reason you mentioned (in event if they add new config stuff into compose).

Glad to see I’m not the only one finding there are rooms for improvement. Thanks for sharing your thoughts with the community!