-
-
Save gblok/8a1dd89412a91e94f82b0f9dfba9e535 to your computer and use it in GitHub Desktop.
Local Consul/Vault environment
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: | |
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