Levelrail
Skip to content

Self-host Vault with Docker ​

HashiCorp Vault for secrets storage, encryption as a service, and dynamic credentials, in file-storage mode.

This page describes the Levelrail template for Vault (Security). It deploys the services below as one Docker Compose app on your own server.

Project site: https://developer.hashicorp.com/vault/docs/deploy/run-container.

Recommended memory: about 256 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
vaulthashicorp/vault:1.188200
vault_data -> /vault/file

Environment variables ​

ServiceVariableValue
vaultVAULT_ADDRPreset in the template
vaultVAULT_LOCAL_CONFIGPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Vault with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Vault. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy vault --name my-vault

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Security templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.