Created
November 13, 2018 20:19
-
-
Save baniol/174990e4e706b7cf83baccf2a6a1a4de to your computer and use it in GitHub Desktop.
Basic vault in docker for development, from https://stackoverflow.com/a/45298549
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
myvault: | |
image: vault | |
container_name: myvault | |
ports: | |
- "127.0.0.1:8200:8200" | |
volumes: | |
- ./file:/vault/file:rw | |
- ./config:/vault/config:rw | |
cap_add: | |
- IPC_LOCK | |
entrypoint: vault server -config=/vault/config/vault.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"backend": {"file": {"path": "/vault/file"}}, | |
"listener": {"tcp": {"address": "0.0.0.0:8200", "tls_disable": 1}}, | |
"default_lease_ttl": "168h", | |
"max_lease_ttl": "0h" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment