How to use docker-compose to spin up a Vault instance backed by Consul.
A full description can be found on my website: https://www.marcolancini.it/2017/blog-vault/
No longer using djenriquez/vault-ui, since native Vault UI is used. Access is via https://localhost:8200/ui/ once vault is unsealed.
WARNING: This issue was solved in Mac OS X by using perl -pe 's/\x1b\[[0-9;]*[a-zA-Z]//g'
in some of the scripts when pulling values from keys.txt.
- Start services:
docker-compose up
- Init vault:
./_scripts/setup.sh
- When done:
docker-compose down
Data will be persisted in the _data
folder.
- Start services:
docker-compose up
- Unseal vault:
_scripts/unseal.sh
- Start services:
docker-compose up
- Run backup:
_scripts/backup.sh
- Stop services:
docker-compose down --volumes
- Clear persisted data:
_scripts/clean.sh