Skip to content

Instantly share code, notes, and snippets.

@baniol
Created November 13, 2018 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baniol/174990e4e706b7cf83baccf2a6a1a4de to your computer and use it in GitHub Desktop.
Save baniol/174990e4e706b7cf83baccf2a6a1a4de to your computer and use it in GitHub Desktop.
Basic vault in docker for development, from https://stackoverflow.com/a/45298549
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
{
"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