# Self-host Bytebase

> A database schema change and migration tool with review workflows built in.

- Page: https://levelrail.com/templates/bytebase/
- JSON: https://levelrail.com/templates/bytebase.json
- Category: Database Tools
- Licence: MIT (Permissive license)
- Source: https://github.com/bytebase/bytebase
- Upstream docs: https://docs.bytebase.com/get-started/step-by-step/deploy-with-docker

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 3.9.2

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| bytebase | bytebase/bytebase | 3.9.2 | 8080 | bytebase_data -> /var/opt/bytebase |

## Deploy

### CLI

```bash
levelrail-cli templates deploy bytebase --name my-bytebase
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/bytebase/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Bytebase on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id bytebase for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image bytebase/bytebase:3.9.2 is what you deploy there.

Self-host Bytebase, Bytebase docker compose file, deploy Bytebase on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
