Docker Community Forums

Share and learn in the Docker community.

Use AWS Secrets manager in a docker-compose.yml

Hello there,
I am searching for a solution to use the AWS SM in a .yml
I have in my config.php the username and the password of my db and i will hide it all over my servers.
Can someone say me how i must use it?

You need to add the secret in the secrets section and address it by it’s arn.
See: Deploying Docker containers on ECS | Docker Documentation

I assume you deploy your compose files using docker compose? I doubt that the (non-cloud) docker-compose comand supports this as well.