Self-host TrailBase with Levelrail
A fast Rust and SQLite application server with type-safe APIs and auth.
- Memory128 MiB
- Archarm64
- Services1
How to self-host TrailBase
-
Pull the images
One image is pulled on your server.
Show images
trailbase/trailbase:0.22.6
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 4000.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
TrailBase requirements
- Memory
- About 128 MiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 4000
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- not yet recorded
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
- Host ports. It publishes port 4000 on the host, so open them in the VPS firewall only if you want that.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then TrailBase. 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 TrailBase docs page.
Deploy TrailBase your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy TrailBase from the CLI
levelrail-cli templates deploy trailbase --name my-trailbase Deploy TrailBase with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/trailbase/deploy TrailBase configuration
TrailBase services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| trailbase | trailbase/trailbase:0.22.6 | 4000 | trailbase_data -> /app/traildepot |
TrailBase environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 4000
- Volumes
- 1 named mount: trailbase_data -> /app/traildepot
TrailBase FAQ
How much memory does TrailBase need?
The catalog lists about 128 MiB of memory for TrailBase.
Does TrailBase run on arm64?
For TrailBase, an arm64 image is published; amd64 is image published.
Does TrailBase need configuration before it starts?
No. The template fills in its own defaults.
Which ports does TrailBase use?
TrailBase listens on port 4000 inside the stack.
Where does TrailBase keep its data?
In a named volume: trailbase_data mounted at /app/traildepot.
Can I deploy TrailBase 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 trailbase for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image trailbase/trailbase:0.22.6 is what you deploy there.