Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Created November 12, 2022 10:07
Show Gist options
  • Save erangaeb/9e027af9b66f45a276f5d17308720d32 to your computer and use it in GitHub Desktop.
Save erangaeb/9e027af9b66f45a276f5d17308720d32 to your computer and use it in GitHub Desktop.
deployment of vault with consul storage backend
version: '3.8'
services:
vault-consul:
image: erangaeb/vault-consul:0.1
ports:
- 8200:8200
environment:
- VAULT_ADDR=http://127.0.0.1:8200
- VAULT_API_ADDR=http://127.0.0.1:8200
command: server -config=/vault/config/vault-config.json
cap_add:
- IPC_LOCK
depends_on:
- consul
consul:
image: erangaeb/consul:0.1
ports:
- 8500:8500
command: agent -server -bind 0.0.0.0 -client 0.0.0.0 -bootstrap-expect 1 -config-file=/consul/config/config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment