HUB
Sign inSign up
hashicorp-vault logo

11notes/hashicorp-vault

By 11notes

•Updated almost 3 years ago

Run HashiCorp Vault in the most secure way

Image
0

1.1K

11notes/hashicorp-vault repository overview

Banner

⁠🏔️ Alpine - HashiCorp Vault

size version pulls activity commit-last stars

Run HashiCorp Vault in the most secure way

⁠SYNOPSIS

What can I do with this? This image will provide you by default with the most secure way to run HashiCorp Vault. It’s compiled from source and comes by default with all settings applied to harden it.

⁠VOLUMES

  • /vault/etc - Directory of config.hcl
  • /vault/var - Directory of file or raft backend

⁠RUN

docker run --name hashicorp-vault \
  -v .../etc:/vault/etc \
  -v .../var:/vault/var \
  -d 11notes/hashicorp-vault:[tag]

⁠EXAMPLES

⁠config /vault/etc/config.hcl

ui = true

storage "file" {
  path = "/vault/var"
}

listener "tcp" {
  address       = "0.0.0.0:8200"
  tls_disable   = 0
  tls_cert_file = "/vault/ssl/default.crt"
  tls_key_file  = "/vault/ssl/default.key"
  tls_disable_client_certs = "true"
}

api_addr = "https://127.0.0.1:8200"
cluster_addr = "https://127.0.0.1:8201"

⁠DEFAULT SETTINGS

ParameterValueDescription
userdockeruser docker
uid1000user id 1000
gid1000group id 1000
home/vaulthome directory of user docker
config/vault/etc/config.hclconfig

⁠ENVIRONMENT

ParameterValueDefault
TZTime Zone⁠
DEBUGShow debug information

⁠PARENT IMAGE

⁠BUILT WITH

⁠TIPS

  • Only use rootless container runtime (podman, rootless docker)
  • Allow non-root ports < 1024 via echo "net.ipv4.ip_unprivileged_port_start=53" > /etc/sysctl.d/ports.conf
  • Use a reverse proxy like Traefik, Nginx to terminate TLS with a valid certificate
  • Use Let’s Encrypt certificates to protect your SSL endpoints

⁠ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a new version. Check the changelog for breaking changes.

Tag summary

Content type

Image

Digest

sha256:04972b7f5…

Size

392.2 MB

Last updated

almost 3 years ago

docker pull 11notes/hashicorp-vault:1.15.5