Self-host MindsDB with Levelrail

A query layer that connects data sources and AI models so you can ask questions in SQL. MIT licensed. Includes the web editor and the HTTP API.

  • Authormindsdb
  • LicenceMIT
  • Memory2 GiB
  • Services1

How to self-host MindsDB

  1. Pull the images

    One image is pulled on your server.

    Show images
    • mindsdb/mindsdb:v26.1.0
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 47334.

  3. Fill in the secrets

    You do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

After the first start

  • Open the editor, connect a data source and create a model with SQL.

MindsDB requirements

Memory
About 2 GiB
Architectures
amd64 unknown, arm64 unknown
Ports
47334
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
MIT, permissive license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then MindsDB. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the MindsDB docs page.

Deploy MindsDB your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy MindsDB from the CLI

levelrail-cli templates deploy mindsdb --name my-mindsdb

Deploy MindsDB with the API

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

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

MindsDB configuration

MindsDB services

ServiceImagePortsVolumes
mindsdb mindsdb/mindsdb:v26.1.0 47334 storage -> /root/mdb_storage

MindsDB environment variables

The catalog lists no environment variables for this template.

Ports and volumes

Ports
47334
Volumes
1 named mount: storage -> /root/mdb_storage

MindsDB FAQ

How much memory does MindsDB need?

The catalog lists about 2 GiB of memory for MindsDB.

Does MindsDB run on arm64?

For MindsDB, arm64 support is not confirmed; amd64 is unknown.

What licence is MindsDB under?

MindsDB is licensed under MIT, which is permissive, with few conditions on reuse.

Does MindsDB need configuration before it starts?

No. The template fills in its own defaults.

Which ports does MindsDB use?

MindsDB listens on port 47334 inside the stack.

Where does MindsDB keep its data?

In a named volume: storage mounted at /root/mdb_storage.

Can I deploy MindsDB on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for MindsDB, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image mindsdb/mindsdb:v26.1.0 is what you deploy there.

levelrail-cli templates deploy mindsdb --name my-mindsdb