Skip to content

Use Docker Secrets for MariaDB password #35

Description

@BadCoder12

What's Your Idea?

Use Docker Secrets in the Docker Compose to enter the MariaDB password

Why Would This Be Helpful?

You won't have the database password in plain text in the yml or the .env file

Anything Else? (Optional)

This can be done by adding the following as a shell command.

if [ -n "$DATABASE_PASSWORD_FILE" ]; then
export DATABASE_PASSWORD=$(cat $DATABASE_PASSWORD_FILE)
fi

Want to Help Out?

I'm happy to help test and give feedback

Have You Considered Any Alternatives? (Optional)

No response

Before Submitting

  • I've searched existing issues and confirmed this feature hasn't been requested yet
Pinned by imnotjames

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions