Skip to content

Instantly share code, notes, and snippets.

@Mishco
Created June 2, 2022 07:36
Show Gist options
  • Save Mishco/db4f869a74bf21e1e587d7993ec1ae53 to your computer and use it in GitHub Desktop.
Save Mishco/db4f869a74bf21e1e587d7993ec1ae53 to your computer and use it in GitHub Desktop.
Docker compose for dev
version: '3.6'
services:
vault:
image: vault:latest
container_name: vault
restart: on-failure:10
ports:
- "8201:8201"
environment:
VAULT_ADDR: 'https://0.0.0.0:8201'
VAULT_LOCAL_CONFIG: '{"listener": [{"tcp":{"address": "0.0.0.0:8201","tls_disable":"0", "tls_cert_file":"/data/vault-volume/certificate.pem", "tls_key_file":"/data/vault-volume/key.pem"}}], "default_lease_ttl": "168h", "max_lease_ttl": "720h"}, "ui": true}'
VAULT_DEV_ROOT_TOKEN_ID: '00000000-0000-0000-0000-000000000000'
VAULT_TOKEN: '00000000-0000-0000-0000-000000000000'
cap_add:
- IPC_LOCK
volumes:
- vault-volume:/data
healthcheck:
retries: 5
command: server -dev -dev-root-token-id="00000000-0000-0000-0000-000000000000"
networks:
- sk_cloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment