this post was submitted on 07 Jun 2023
2 points (100.0% liked)

Lemmy Support

4651 readers
5 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

This doesn't seem to be included in the documentation, but when configuring the hostnames of your containers for pictrs, email, and database, you need to set those hostnames to the hostnames of your docker containers. Note that the line below should remain unchanged.

hostname: "{{ domain }}"

you are viewing a single comment's thread
view the rest of the comments

These hostnames were one of the most confusing part of the setup. You have nginx, which is looking for the 0.0.0.0, which doesn't work with the example docker because it uses docker networking, so you have to use the docker hostnames. Which is great, but then you have to tell nginx to not use the system dns resolver but docker's.

Then, you have environment variables everywhere for "host" which I personally had no idea if they mean the host (docker container), the host (actual machine localhost), or the host (full domain.tld)