docker-compose and dotenv treat .env.production differently #16895
Open
Description
Expected behaviour
A same configuration file should work the same way via docker-compose
or dotenv
.
Actual behaviour
When loaded via dotenv
, env variables are read mostly using shell quoting rules, but when using docker-compose
, they are used quite literally, with no quoting or escaping rules.
Steps to reproduce the problem
- Write a config file with a quoted string (e.g.
SMTP_FROM_ADDRESS='Notifications <[email protected]>'
) - Run Mastodon through
docker-compose
: it fails withMail::Field::IncompleteParseError
Specifications
Any Mastodon version
Metadata
Assignees
Labels
No labels
Activity