When using Docker Compose, avoid spaces around the = sign in environment variable definitions. Spaces cause variables to be silently ignored.
Correct:MY_VARIABLE=valueIncorrect:MY_VARIABLE = value
Add automatically your local CA-certificate
An issue you may encounter when setting up your mailer is that your local CA certificates might not be included inside your Docker container. This could cause problems when sending emails.
To address this, we need to apply some modifications to the compose file in the backend and huey services:
Add a volume to mount the certificate (replace /your/ca-certificate/path/example_CA.crt by the path and the name of your ca-certificate):
Add a command through the entrypoint:
There's already an entrypoint for huey, you can modify it like this: