Home Explore Blog CI



docker

content/includes/compose/secrets.md
5ca7da94331a557cc4c18eee420b7b3c262f71fb371ae39e0000000300000166
Docker Compose provides a way for you to use secrets without having to use environment variables to store information. If you’re injecting passwords and API keys as environment variables, you risk unintentional information exposure. Services can only access secrets when explicitly granted by a `secrets` attribute within the `services` top-level element.

Chunks
88896a27 (1st chunk of `content/includes/compose/secrets.md`)
Title: Using Secrets in Docker Compose
Summary
Docker Compose allows the use of secrets to avoid storing sensitive information like passwords and API keys in environment variables, which can lead to unintended exposure. Services must be explicitly granted access to secrets using the `secrets` attribute.