Skip to main content

Load docker secrets into ENV

Project description

docker-secrets-dotenv

docker-secrets-dotenv takes all your docker secrets files, and sets them up in the environment.

Getting Started

pip install docker-secrets-dotenv

To use docker-secrets-dotenv in your project run load_secrets as the start of your application:

from docker_secrets import load_secrets

load_secrets() 
# This will load all secret files found in /run/secrets into the running environment

load_secrets will take the name of each secret file to set as the variable key and read the file contents as the value. It will overwrite existing environment variables.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docker_secrets_dotenv-0.1.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

docker_secrets_dotenv-0.1.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page