> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-host OpenBao with Docker

> OpenBao, the open source secrets manager forked from Vault, with integrated Raft storage. It is reachable only from services in this project at openbao:8200 over plain HTTP and is not published on the host.

OpenBao, the open source secrets manager forked from Vault, with integrated Raft storage. It is reachable only from services in this project at openbao:8200 over plain HTTP and is not published on the host.

This page describes the Levelrail template for OpenBao (Security). It deploys the services below as one Docker Compose app on your own server. Project site: [https://openbao.org/docs/](https://openbao.org/docs/).

Recommended memory: about 256 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `openbao` | `ghcr.io/openbao/openbao:2.7.2` | 8200 | `openbao_data -&#62; /openbao/file` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `openbao` | `BAO_ADDR` | Preset in the template |
| `openbao` | `BAO_LOCAL_CONFIG` | Preset 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.

## Security and requirements

Level: **Standard**.

What this template needs:

* Stores data in named volumes (`openbao`): openbao\_data.

What Levelrail adds around it:

* Automatic HTTPS and an ingress shield in front of every domain.
* Named volumes can be backed up and restored.
* Deploys are gated on the health check before traffic switches.
* One-step rollback to the previous revision.
* Exposure report shows what is reachable from outside.
* Host firewall rules managed for published ports.

## Deploy OpenBao with Levelrail

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

With the CLI:

```bash theme={"dark"}
levelrail-cli templates deploy openbao --name my-openbao
```

See the [service template catalog](https://docs.levelrail.com/templates-and-registry.md) for how templates work, and [Getting started](https://docs.levelrail.com/getting-started.md) if you have not installed Levelrail yet.

## More Security templates

* [2FAuth](https://docs.levelrail.com/self-host/2fauth.md)
* [Anubis](https://docs.levelrail.com/self-host/anubis.md)
* [Authelia](https://docs.levelrail.com/self-host/authelia.md)
* [authentik](https://docs.levelrail.com/self-host/authentik.md)
* [Cap](https://docs.levelrail.com/self-host/cap-captcha.md)

All templates are listed in the [self-host gallery](https://docs.levelrail.com/self-host.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.