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/
- 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