Skip to content

dockerpac/dockersecrets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker secrets

Build

docker-compose build && docker-compose push

Locally

Secrets vars are set as env vars in docker-compose.override.yml

docker-compose up -d

# Check value of SECRET1
docker-compose logs
# --> SECRET1=secretdev

# cleanup
docker-compose down

Swarm

Secrets vars are set as external swarm secrets

# First create docker secret
echo "secretprod" | docker secret create SECRET1 -
docker stack deploy -c docker-compose.yml mystack

# Check value of SECRET1
docker service logs mystack_alpine
# --> SECRET1=secretprod

# cleanup
docker stack rm mystack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published