Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fpopic/docker-vault
https://github.com/fpopic/docker-vault
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fpopic/docker-vault
- Owner: fpopic
- Created: 2023-11-25T11:41:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-25T12:34:20.000Z (about 1 year ago)
- Last Synced: 2023-11-25T14:32:51.789Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-vault
A docker-compose playground to spin up vault on localhost.
Cool videos
- https://www.youtube.com/playlist?list=PLzZ2RIhyht-P8eT_hO7rdlTdbfWBNeCwK## Option A
- use `vault server -dev` and have an init script that creates secrets every run on-fly
- a) https://stackoverflow.com/questions/72944271/hashicorp-vault-container-dont-save-my-secrets-on-local-volume-when-i-restart-d
- uses `transit`
```shell
$ docker compose -f docker-compose-vault-dev.yml up --remove-orphans
# go to http://localhost:8200/ui/vault/auth?with=token (token is "root")
$ docker compose -f docker-compose-vault-dev.yml down --remove-orphans --volumes
```## Option B
- use `vault server` (aka production mode) with docker-compose named volume
- a) https://github.com/ahmetkaftan/docker-vault/blob/master/vault-init.sh
- doesn't use anything
```shell
$ docker compose -f docker-compose-vault.yml up --remove-orphans
$ docker compose -f docker-compose-vault.yml down --remove-orphans --volumes
```Another examples
- https://github.com/with-shrey/VaultDevSetup-Docker/blob/main/vault-config/vault-setup.sh
- uses `transit` and `approle`