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

Use docker secrets for environment variables #342

Open
srad opened this issue Jan 21, 2023 · 2 comments
Open

Use docker secrets for environment variables #342

srad opened this issue Jan 21, 2023 · 2 comments

Comments

@srad
Copy link

srad commented Jan 21, 2023

Is there a way to use docker secrets for the environment variables?

@AnderssonPeter
Copy link

AnderssonPeter commented Feb 9, 2023

I did the following

secrets:
  google_oauth:
    file: "./oauth/secrets/google_oauth.secret"

container:
  environment:
    - CONFIG=/config
  secrets:
    - source: google_oauth
      target: /config

google_oauth.secret:

providers.google.client-id=
providers.google.client-secret=
secret=
whitelist=
whitelist=

@AnderssonPeter
Copy link

AnderssonPeter commented Mar 9, 2023

It seems the whitelist is ignored so I don't know if its supported in the ini files.
@thomseddon Did I configure something incorrectly or is whitelist not supported in a config file??
Edit: now it seems to work guessing I had some error in my config file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants