Examples of running HashiCorp Vault or OpenBao with different storage backends.
-
File Storage Backend (compose.file.yaml) This is the simplest configuration, using the filesystem for storage. It's ideal for a single-node developer setup.
-
Raft Storage Backend (compose.raft.yaml) The provided configuration is for a single-node setup, which simplifies the example while demonstrating the required configuration. This backend is often used for high-availability clusters (3+ nodes).
-
PostgreSQL Storage Backend (compose.postgres.yaml) This example shows how to run a Vault instance that connects to a separate PostgreSQL container for its storage. The example above is set up for single node but can be scaled to multiple nodes.
Envconsul supports multiple secret paths and also env variables using Go templates i.e.