Skip to content

docker-compose and dotenv treat .env.production differently #16895

Open
@ClearlyClaire

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

  1. Write a config file with a quoted string (e.g. SMTP_FROM_ADDRESS='Notifications <[email protected]>')
  2. Run Mastodon through docker-compose: it fails with Mail::Field::IncompleteParseError

Specifications

Any Mastodon version

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions