Created
June 2, 2022 07:36
-
-
Save Mishco/db4f869a74bf21e1e587d7993ec1ae53 to your computer and use it in GitHub Desktop.
Docker compose for dev
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: '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