Skip to content

Instantly share code, notes, and snippets.

@hyperius
Created January 24, 2018 12:26
Show Gist options
  • Save hyperius/1ec7d80dad23b921d84d932070e58cf3 to your computer and use it in GitHub Desktop.
Save hyperius/1ec7d80dad23b921d84d932070e58cf3 to your computer and use it in GitHub Desktop.
Local Consul/Vault environment
version: "2"
services:
consul:
image: consul:latest
command: "agent -dev -client=0.0.0.0 -bind='{{ GetPrivateIP }}'"
ports:
- 8500:8500
vault:
image: vault:latest
cap_add:
- IPC_LOCK
environment:
- 'VAULT_LOCAL_CONFIG={"listener":{"tcp":{"address":"0.0.0.0:8200","tls_disable":1}}, "backend":{"consul":{"address":"consul:8500","path":"vault"}}, "storage":{"consul":{"address":"consul:8500","path":"vault"}}, "disable_mlock": true}'
- VAULT_ADDR=http://127.0.0.1:8200
command: server
depends_on:
- consul
ports:
- 8200:8200
vault-ui:
image: djenriquez/vault-ui
environment:
- VAULT_URL_DEFAULT=http://vault:8200
- VAULT_AUTH_DEFAULT=TOKEN
ports:
- 8000:8000
depends_on:
- vault
# Please note: vault should be initialized and unsealed before use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment