Howdy! I have the discourse configuration app.yml tracked in a git repository (together with the rest of the server’s configuration).
Naturally, I would like to keep the DISCOURSE_SMTP_PASSWORD
out of the git repo, so I want to pass it in separately. Is there a recommended way to do this?
I’ve tried:
Using docker-compose’s env_file:
section, together with the env:
, to try to pass in a separate file:
env_file:
- path: /var/discourse/containers/creds.env
env:
LANG: en_US.UTF-8
# DISCOURSE_DEFAULT_LOCALE: en
...
====== creds.env ======
DISCOURSE_SMTP_PASSWORD="..."
but I haven’t been able to get docker to pick up the ENV var.
I tried passing it to ``–docker-args```,
sudo /var/discourse/launcher rebuild app --docker-args DISCOURSE_SMTP_PASSWORD=$DISCOURSE_SMTP_PASSWORD
But that borks immediately:
docker: invalid reference format: repository name must be lowercase.
Thank you for this wonderful software and I hope you’re all keeping safe :)))