Secrets with local Compose
- We have secrets by default with local compose
~> ls
docker-compose.yml psql_password.txt psql_user.txt
~> docker node ls
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.
~> docker-compose up -d
Creating network "secretssample2_default" with the default driver
Creating secretssample2_psql_1 ...
Creating secretssample2_psql_1 ... done
~> docker-compose exec psql cat /run/secrets/psql_user
dbuser