Self-host EspoCRM with Docker
An open-source CRM for managing sales, support, and customer relationships end to end.
This page describes the Levelrail template for EspoCRM (Applications). It deploys the services below as one Docker Compose app on your own server.
Project site: https://docs.espocrm.com.Recommended memory: about 1024 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
espocrm | espocrm/espocrm:10 | 80 | espocrm_data -> /var/www/html/dataespocrm_custom -> /var/www/html/custom |
espocrm-db | mariadb:12.3 | none | espocrm_db_data -> /var/lib/mysql |
Environment variables
| Service | Variable | Value |
|---|---|---|
espocrm | ESPOCRM_ADMIN_PASSWORD | Generated at deploy |
espocrm | ESPOCRM_ADMIN_USERNAME | Preset in the template |
espocrm | ESPOCRM_DATABASE_HOST | Preset in the template |
espocrm | ESPOCRM_DATABASE_NAME | Preset in the template |
espocrm | ESPOCRM_DATABASE_PASSWORD | Generated at deploy |
espocrm | ESPOCRM_DATABASE_PLATFORM | Preset in the template |
espocrm | ESPOCRM_DATABASE_USER | Generated at deploy |
espocrm | ESPOCRM_SITE_URL | Preset in the template |
espocrm-db | MARIADB_DATABASE | Preset in the template |
espocrm-db | MARIADB_PASSWORD | Generated at deploy |
espocrm-db | MARIADB_ROOT_PASSWORD | Generated at deploy |
espocrm-db | MARIADB_USER | Generated at deploy |
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 EspoCRM with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select EspoCRM. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy espocrm --name my-espocrmSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Applications templates
All templates are listed in the self-host gallery.