Home Explore Blog CI



docker

1st chunk of `content/includes/compose/secrets.md`
88896a277f8852f568188912ea9fd7ba67bb4414fd5b98ab0000000100000166
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.

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.