Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support docker-secrets #12796

Open
tribela opened this issue Jan 7, 2020 · 1 comment
Open

Support docker-secrets #12796

tribela opened this issue Jan 7, 2020 · 1 comment
Labels
docker suggestion Feature suggestion

Comments

@tribela
Copy link
Contributor

tribela commented Jan 7, 2020

Pitch

In docker swarm mode, it doesn't use env_file, And use docker secrets.
It stores secret variable into /run/secrets/<secret name> file

Many apps(For example, minio) support this, And fallback to env var is backward compatible

Motivation

Mastodon supports docker-compose, heroku, nanobox. Why not on docker swarm mode?

@raeffs
Copy link

raeffs commented Dec 23, 2022

I would love to have that feature too.

As mentioned, a lot of apps support this for passwords and other secrets that can be set via environment variables. For example, if they know a variable DB_PASS they also look for a variable DB_PASS_FILE and if it is set, they load the password/secret from the configured file and ignore DB_PASS. This way secrets can be mounted via file and don't need to be set as environment variables. That works not only with docker swarm, but also docker compose and of course more mature container orchestration tools.

Authelia has a, in my opinion, very good description of that: https://www.authelia.com/configuration/methods/secrets/

@vmstan vmstan added suggestion Feature suggestion docker labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

3 participants