You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So one instance that would be supported now would be in use of environmental variables. the docker compose for my project i just converted sets stuff like the username and pass for a database as env variables. ill convert them over to using secrets
Since Docker Compose now has secrets, the best way (from my research) would be to use secrets as well as the file option of import. Unfortunately using external will not work as secrets stored within swarm are encrypted Raft variables (no idea what they mean by that in the documentation).
Activity
sebgoa commentedon Nov 21, 2016
Docker does not yet have a concept of secrets, does it ? I think they are working on it , but it is not there yet and not in compose AFAIK.
jamstar commentedon Feb 27, 2017
So one instance that would be supported now would be in use of environmental variables. the docker compose for my project i just converted sets stuff like the username and pass for a database as env variables. ill convert them over to using secrets
surajssd commentedon Mar 1, 2017
@jamstar yeah that needs to be done manually!
cdrage commentedon Jul 25, 2017
Secrets are able to be defined in Docker Compose Version 3: https://docs.docker.com/compose/compose-file/#secrets-configuration-reference and thus we can map this to Kubernetes much easier than expected.
cdrage commentedon Aug 18, 2017
Since Docker Compose now has secrets, the best way (from my research) would be to use secrets as well as the
file
option of import. Unfortunately usingexternal
will not work as secrets stored within swarm are encrypted Raft variables (no idea what they mean by that in the documentation).See: https://stackoverflow.com/questions/42139605/how-do-you-manage-secret-values-with-docker-compose-v3-1 for some context.
surajnarwade commentedon Aug 31, 2017
FYI,
secrets
is supported in docker-compose version 3.143 remaining items