> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-host Dolibarr with Docker

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

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

This page describes the Levelrail template for Dolibarr (Finance). It deploys the services below as one Docker Compose app on your own server. Project site: [https://wiki.dolibarr.org](https://wiki.dolibarr.org).

Recommended memory: about 768 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `db` | `mariadb:11` | none | `dolibarr_db_data -&#62; /var/lib/mysql` |
| `dolibarr` | `dolibarr/dolibarr:23.0.4` | 80 | `dolibarr_documents -&#62; /var/www/documents`<br />`dolibarr_custom -&#62; /var/www/html/custom` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `db` | `MARIADB_DATABASE` | Preset in the template |
| `db` | `MARIADB_PASSWORD` | Generated at deploy |
| `db` | `MARIADB_ROOT_PASSWORD` | Generated at deploy |
| `db` | `MARIADB_USER` | Preset in the template |
| `dolibarr` | `DOLI_ADMIN_LOGIN` | Preset in the template |
| `dolibarr` | `DOLI_ADMIN_PASSWORD` | Generated at deploy |
| `dolibarr` | `DOLI_DB_HOST` | Preset in the template |
| `dolibarr` | `DOLI_DB_NAME` | Preset in the template |
| `dolibarr` | `DOLI_DB_PASSWORD` | Generated at deploy |
| `dolibarr` | `DOLI_DB_USER` | Preset in the template |
| `dolibarr` | `DOLI_URL_ROOT` | Preset in the template |

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

## Deploy Dolibarr with Levelrail

In the dashboard, open **Apps**, choose **New app**, then **Browse templates**, and select Dolibarr. Review the Compose body and deploy.

With the CLI:

```bash theme={"dark"}
levelrail-cli templates deploy dolibarr --name my-dolibarr
```

See the [service template catalog](/templates-and-registry) for how templates work, and [Getting started](/getting-started) if you have not installed Levelrail yet.

## More Finance templates

* [Actual Budget](/self-host/actual-budget)
* [Actual Budget](/self-host/actualbudget)
* [Budge](/self-host/budge)
* [Firefly III](/self-host/firefly-iii)
* [Ghostfolio](/self-host/ghostfolio)

All templates are listed in the [self-host gallery](/self-host).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.