Self-host Leantime with Levelrail

A goals-focused project management tool built for people who aren't professional project managers.

  • AuthorLeantime
  • LicenceAGPL-3.0-only
  • Memory512 MiB
  • Archarm64
  • Services3

How to self-host Leantime

  1. Pull the images

    3 images are pulled on your server.

    Show images
    • mysql:8.4
    • leantime/leantime:3.5.6
    • redis:7-alpine
  2. Create the app

    3 services start in a single Compose app, with 4 named volume mounts for your data, on port 8080.

  3. Fill in the secrets

    4 secrets are generated and stored encrypted, 8 settings are preset, 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.

Leantime requirements

Memory
About 512 MiB
Architectures
amd64 image published, arm64 image published
Ports
8080
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
AGPL-3.0-only, network copyleft (agpl) license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes port 8080 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 Leantime. 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 Leantime docs page.

Deploy Leantime your way

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

Deploy Leantime from the CLI

levelrail-cli templates deploy leantime --name my-leantime

Deploy Leantime 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/leantime/deploy

Leantime configuration

Leantime services

ServiceImagePortsVolumes
db mysql:8.4 none leantime_db_data -> /var/lib/mysql
leantime leantime/leantime:3.5.6 8080 leantime_userfiles -> /var/www/html/userfilesleantime_public_userfiles -> /var/www/html/public/userfiles
redis redis:7-alpine none leantime_redis_data -> /data

Leantime environment variables

VariableServiceValue
MYSQL_DATABASE db Preset by the template
MYSQL_PASSWORD db Generated at deploy
MYSQL_ROOT_PASSWORD db Generated at deploy
MYSQL_USER db Preset by the template
LEAN_DB_DATABASE leantime Preset by the template
LEAN_DB_HOST leantime Preset by the template
LEAN_DB_PASSWORD leantime Generated at deploy
LEAN_DB_USER leantime Preset by the template
Show all 12 variables
  • LEAN_REDIS_HOSTleantimePreset by the template
  • LEAN_REDIS_PORTleantimePreset by the template
  • LEAN_SESSION_PASSWORDleantimeGenerated at deploy
  • LEAN_USE_REDISleantimePreset by the template

Ports and volumes

Ports
8080
Volumes
4 named mounts: leantime_db_data -> /var/lib/mysql, leantime_userfiles -> /var/www/html/userfiles, leantime_public_userfiles -> /var/www/html/public/userfiles, leantime_redis_data -> /data

Leantime FAQ

How much memory does Leantime need?

The catalog lists about 512 MiB of memory for Leantime across its 3 services.

Does Leantime run on arm64?

For Leantime, an arm64 image is published; amd64 is image published.

What licence is Leantime under?

Leantime is licensed under AGPL-3.0-only, which is network copyleft, so source sharing also applies when it is offered as a hosted service.

Does Leantime need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Leantime bundle?

The template includes MySQL and Redis, running as its own service.

Which ports does Leantime use?

Leantime listens on port 8080 inside the stack.

Where does Leantime keep its data?

In named volumes: leantime_db_data mounted at /var/lib/mysql, leantime_userfiles mounted at /var/www/html/userfiles, leantime_public_userfiles mounted at /var/www/html/public/userfiles and leantime_redis_data mounted at /data.

Can I deploy Leantime 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 leantime for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image mysql:8.4, leantime/leantime:3.5.6, redis:7-alpine is what you deploy there.

levelrail-cli templates deploy leantime --name my-leantime