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