Data Storage & Backups
For: IT and infrastructure teams operating a self-hosted Axemere Gateway.
IT Setup Overview | Data Storage & Backups | Linux (Debian/Ubuntu) | Linux (RHEL/Fedora) | macOS | Docker/Podman | Kubernetes | Windows (WSL2) | Cloud
The self-hosted gateway has no external database to install or configure. All durable state (credentials, workloads, policy bundles, budget limits, pricing, and execution records) lives in a single embedded database file. There's nothing to provision before starting the gateway beyond the file's location, and every install method below already picks a sensible default.
Table of Contents
- The database file
- Default location per install method
- Backing up
- Migrating from an older PostgreSQL-backed install
The database file
The file's location is controlled by the MVGC_BOLT_DB_PATH environment variable. There is
no mvgc.yaml config key for it. The built-in default, if nothing is set, is ./mvgc.db
relative to the gateway's working directory.
You don't need to set this yourself for most install methods: each one picks a real path
automatically, listed below. The one exception is running the container image directly with
docker run instead of Compose; see that row for why it matters there specifically.
Default location per install method
| Install method | Default path | Who sets it |
|---|---|---|
| Debian/Ubuntu/RHEL package (systemd) | /var/lib/mvgc/mvgc.db | Automatic: the service unit sets it |
| Homebrew service (macOS) | $(brew --prefix)/var/mvgc/mvgc.db | Automatic: the formula sets it |
| Docker Compose | /data/mvgc.db, on the gateway's volume | Automatic: the compose file sets it |
Plain docker run (no Compose) | Your choice, on a mounted volume | You must set MVGC_BOLT_DB_PATH yourself |
| Kubernetes (Helm chart) | On the gateway's PersistentVolume | Automatic: the chart sets it |
docker run without Compose: if you're running the image directly rather than through
the project's Compose file, mount a host volume and set MVGC_BOLT_DB_PATH to a path inside
it yourself. If you skip this, the gateway falls back to the built-in default inside the
container's own filesystem, and every bit of state (credentials, policies, budgets,
execution records) is lost the next time the container is recreated. See
Docker and Podman for the exact flag.
Backing up
Back up two things together, as a pair:
- The database file itself, at whichever path applies from the table above.
- The key directory (
MVGC_KEY_DIR, default/var/lib/mvgc/keyson Linux packages). This holds the gateway's Ed25519 signing key pair. See Node Identity and Key Setup for what lives there and why it matters.
A plain file copy of both (gateway stopped, or snapshotted via your platform's normal volume/disk snapshot mechanism) is sufficient; there's no separate dump/restore tool to run.
Migrating from an older PostgreSQL-backed install
If you're running a gateway version from before this change, it may still have DATABASE_URL
or a database.url entry in mvgc.yaml set from a previous setup. On a current gateway, that
value is ignored: the gateway logs a single warning on startup and uses the embedded database
file instead. It's safe to remove DATABASE_URL and any database: block from your
configuration; neither does anything anymore.