Levelrail
Skip to content

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 ​

ServiceImageContainer portsVolumes
espocrmespocrm/espocrm:1080
espocrm_data -> /var/www/html/data
espocrm_custom -> /var/www/html/custom
espocrm-dbmariadb:12.3none
espocrm_db_data -> /var/lib/mysql

Environment variables ​

ServiceVariableValue
espocrmESPOCRM_ADMIN_PASSWORDGenerated at deploy
espocrmESPOCRM_ADMIN_USERNAMEPreset in the template
espocrmESPOCRM_DATABASE_HOSTPreset in the template
espocrmESPOCRM_DATABASE_NAMEPreset in the template
espocrmESPOCRM_DATABASE_PASSWORDGenerated at deploy
espocrmESPOCRM_DATABASE_PLATFORMPreset in the template
espocrmESPOCRM_DATABASE_USERGenerated at deploy
espocrmESPOCRM_SITE_URLPreset in the template
espocrm-dbMARIADB_DATABASEPreset in the template
espocrm-dbMARIADB_PASSWORDGenerated at deploy
espocrm-dbMARIADB_ROOT_PASSWORDGenerated at deploy
espocrm-dbMARIADB_USERGenerated 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-espocrm

See 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.

Released under the Apache 2.0 License.