Skip Navigation
Lemmy Support @lemmy.ml MrWiggles @prime8s.xyz

PSA: Your hostnames in config.hjson need to be the names of your docker containers

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 }}"

1
1 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)