Skip to content

Instantly share code, notes, and snippets.

@whchi
Created September 22, 2024 16:05
Show Gist options
  • Select an option

  • Save whchi/34665b7b3af5dc4b9fef6dfd2e6fd06e to your computer and use it in GitHub Desktop.

Select an option

Save whchi/34665b7b3af5dc4b9fef6dfd2e6fd06e to your computer and use it in GitHub Desktop.
vault local docker compose
services:
vault:
image: vault:1.17.5
container_name: vault
restart: on-failure:10
ports:
- '8200:8200'
environment:
VAULT_ADDR: 'http://0.0.0.0:8200'
VAULT_LOCAL_CONFIG: |
{
"listener": [
{
"tcp": {
"address": "0.0.0.0:8200",
"tls_disable": 1
}
}
],
"default_lease_ttl": "168h",
"max_lease_ttl": "720h",
"ui": true
}
VAULT_DEV_ROOT_TOKEN_ID: '00000000-0000-0000-0000-000000000000'
cap_add:
- IPC_LOCK
volumes:
- vault-volume:/vault/file
command: server -dev -dev-root-token-id="00000000-0000-0000-0000-000000000000"
volumes:
vault-volume:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment