Self-host EspoCRM with Levelrail

An open-source CRM for managing sales, support, and customer relationships end to end.

  • Authorespocrm
  • LicenceAGPL-3.0-or-later
  • Memory1 GiB
  • Archarm64
  • Services2

How to self-host EspoCRM

  1. Pull the images

    2 images are pulled on your server.

    Show images
    • espocrm/espocrm:10
    • mariadb:12.3
  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

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

EspoCRM requirements

Memory
About 1 GiB
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
AGPL-3.0-or-later, 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 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 EspoCRM. 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 EspoCRM docs page.

Deploy EspoCRM your way

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

Deploy EspoCRM from the CLI

levelrail-cli templates deploy espocrm --name my-espocrm

Deploy EspoCRM 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/espocrm/deploy

EspoCRM configuration

EspoCRM services

ServiceImagePortsVolumes
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

EspoCRM environment variables

VariableServiceValue
ESPOCRM_ADMIN_PASSWORD espocrm Generated at deploy
ESPOCRM_ADMIN_USERNAME espocrm Preset by the template
ESPOCRM_DATABASE_HOST espocrm Preset by the template
ESPOCRM_DATABASE_NAME espocrm Preset by the template
ESPOCRM_DATABASE_PASSWORD espocrm Generated at deploy
ESPOCRM_DATABASE_PLATFORM espocrm Preset by the template
ESPOCRM_DATABASE_USER espocrm Generated at deploy
ESPOCRM_SITE_URL espocrm Preset by the template
Show all 12 variables
  • MARIADB_DATABASEespocrm-dbPreset by the template
  • MARIADB_PASSWORDespocrm-dbGenerated at deploy
  • MARIADB_ROOT_PASSWORDespocrm-dbGenerated at deploy
  • MARIADB_USERespocrm-dbGenerated at deploy

Ports and volumes

Ports
80
Volumes
3 named mounts: espocrm_data -> /var/www/html/data, espocrm_custom -> /var/www/html/custom, espocrm_db_data -> /var/lib/mysql

EspoCRM FAQ

How much memory does EspoCRM need?

The catalog lists about 1 GiB of memory for EspoCRM across its 2 services.

Does EspoCRM run on arm64?

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

What licence is EspoCRM under?

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

Does EspoCRM need configuration before it starts?

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

Which database does EspoCRM bundle?

The template includes MySQL, running as its own service.

Which ports does EspoCRM use?

EspoCRM listens on port 80 inside the stack.

Where does EspoCRM keep its data?

In named volumes: espocrm_data mounted at /var/www/html/data, espocrm_custom mounted at /var/www/html/custom and espocrm_db_data mounted at /var/lib/mysql.

Can I deploy EspoCRM on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for EspoCRM, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image espocrm/espocrm:10, mariadb:12.3 is what you deploy there.

levelrail-cli templates deploy espocrm --name my-espocrm