Self-host Dolibarr with Levelrail

An open-source ERP and CRM for small businesses: invoicing, contacts, stock, and accounting in one app.

  • Memory768 MiB
  • Archarm64
  • Services2

How to self-host Dolibarr

  1. Pull the images

    2 images are pulled on your server.

    Show images
    • mariadb:11
    • dolibarr/dolibarr:23.0.4
  2. Create the app

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

  3. Fill in the secrets

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

Dolibarr requirements

Memory
About 768 MiB
Architectures
amd64 image published, arm64 image published
Ports
80
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 80 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 Dolibarr. 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 Dolibarr docs page.

Deploy Dolibarr your way

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

Deploy Dolibarr from the CLI

levelrail-cli templates deploy dolibarr --name my-dolibarr

Deploy Dolibarr 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/dolibarr/deploy

Dolibarr configuration

Dolibarr services

ServiceImagePortsVolumes
db mariadb:11 none dolibarr_db_data -> /var/lib/mysql
dolibarr dolibarr/dolibarr:23.0.4 80 dolibarr_documents -> /var/www/documentsdolibarr_custom -> /var/www/html/custom

Dolibarr environment variables

VariableServiceValue
MARIADB_DATABASE db Preset by the template
MARIADB_PASSWORD db Generated at deploy
MARIADB_ROOT_PASSWORD db Generated at deploy
MARIADB_USER db Preset by the template
DOLI_ADMIN_LOGIN dolibarr Preset by the template
DOLI_ADMIN_PASSWORD dolibarr Generated at deploy
DOLI_DB_HOST dolibarr Preset by the template
DOLI_DB_NAME dolibarr Preset by the template
Show all 11 variables
  • DOLI_DB_PASSWORDdolibarrGenerated at deploy
  • DOLI_DB_USERdolibarrPreset by the template
  • DOLI_URL_ROOTdolibarrPreset by the template

Ports and volumes

Ports
80
Volumes
3 named mounts: dolibarr_db_data -> /var/lib/mysql, dolibarr_documents -> /var/www/documents, dolibarr_custom -> /var/www/html/custom

Dolibarr FAQ

How much memory does Dolibarr need?

The catalog lists about 768 MiB of memory for Dolibarr across its 2 services.

Does Dolibarr run on arm64?

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

Does Dolibarr need configuration before it starts?

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

Which database does Dolibarr bundle?

The template includes MySQL, running as its own service.

Which ports does Dolibarr use?

Dolibarr listens on port 80 inside the stack.

Where does Dolibarr keep its data?

In named volumes: dolibarr_db_data mounted at /var/lib/mysql, dolibarr_documents mounted at /var/www/documents and dolibarr_custom mounted at /var/www/html/custom.

Can I deploy Dolibarr 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 dolibarr for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image mariadb:11, dolibarr/dolibarr:23.0.4 is what you deploy there.

levelrail-cli templates deploy dolibarr --name my-dolibarr