# Conflicts: # roles/web-app-akaunting/TODO.md # roles/web-app-friendica/meta/volumes.yml # roles/web-app-fusiondirectory/TODO.md # roles/web-app-keycloak/TODO.md # roles/web-app-lam/meta/volumes.yml # roles/web-app-phpmyadmin/meta/volumes.yml # roles/web-app-pixelfed/meta/volumes.yml # scripts/docker/cache/package.sh
EspoCRM
Description
Enhance your sales and service processes with EspoCRM, an open-source CRM featuring workflow automation, LDAP/OIDC single sign-on, and a sleek, lightweight UI! 🚀💼
Overview
This Ansible role deploys EspoCRM using Docker. It handles:
- MariaDB database provisioning via the
sys-svc-rdbmsrole - NGINX domain setup with WebSocket and reverse-proxy configuration
- Environment variable management through Jinja2 templates
- Docker Compose orchestration for web, daemon, and websocket services
- Automatic OIDC scope configuration within the EspoCRM container
With this role, you'll have a production-ready CRM environment that's secure, scalable, and real-time.
Addons
Role-level extensions are declared in meta/addons/, one file per addon:
| Addon | Mechanism | Default state | Bridges |
|---|---|---|---|
oidc |
extension |
enabled whenever the sso service is present (web-app-keycloak co-deployed) |
sso → web-app-keycloak |
outbound-emails |
extension |
enabled whenever the email service is present (web-app-mailu co-deployed) |
email → web-app-mailu |
Both name surfaces EspoCRM ships itself, so their payload stays with templates/env.j2, which renders ESPOCRM_CONFIG_OIDC_* and ESPOCRM_CONFIG_SMTP_* from the same service flags the addons' enabled expressions read; files/php/seed/config.php writes them into EspoCRM's own config.
Features
- Workflow Automation: Create and manage automated CRM processes with ease 🛠️
- LDAP/OIDC SSO: Integrate with corporate identity providers for seamless login 🔐
- WebSocket Notifications: Real-time updates via ZeroMQ and WebSockets 🌐
- Config via Templates: Fully customizable
.envandcompose.ymlwith Jinja2 ⚙️ - Health Checks & Logging: Monitor service health and logs with built-in checks and journald 📈
- Modular Role Composition: Leverages central roles for database and NGINX, ensuring consistency across deployments 🔄
AI Assistance
This role deploys no AI surface and declares no litellm service, because EspoCRM's open-source distribution does not ship one. At the pinned version 10.0.4, application/Espo/Modules contains only Crm, application/Espo/Resources/metadata/app/config.json declares no AI key, and the release ZIP the image is built from leaves custom/Espo/Modules empty. The AI features (Summary, Intelligent Paste, AI Email Composer, AI formula functions) live exclusively in the commercial Intelligence extension, which is closed source, requires a purchased license, and is published in no espocrm GitHub repository. Bumping the version does not change this: the extension is documented as requiring EspoCRM 10.0.3 or greater, so newer cores stay hosts for it rather than absorbing it.
To connect EspoCRM to the platform gateway once a license is available:
- Obtain the extension ZIP and make it reachable from the stack host at deploy time.
- Install it inside the container with
bin/command extension --file="path/to/package.zip", or through Administration > Extensions, and confirm it withbin/command extension --list. - Create the AI model entry under Administration > Intelligence panel > Settings, selecting the
Custom OpenAI-compatibleprovider, and enter the API credentials under Administration > Integrations. - Use
LITELLM_OPENAI_BASE_LOCAL_URLas the base URL,LITELLM_CHAT_MODELas the model name, and the role's own virtual key fromlookup('config', application_id, 'credentials.litellm_api_key')as the API key. Re-add that credential tometa/secrets.ymland thelitellmservice tometa/services.ymlin the same change, so the gateway mints the key only once a consumer presents it.
The field names on the provider record are only discoverable by unpacking the purchased artifact, so step 3 has to be measured against the extension actually installed rather than assumed from this note.
Further Resources
- EspoCRM Official Website 🌍
- EspoCRM Documentation 📖
- Infinito.Nexus Project Repository 🔗
- Corporate design review: screenshots in light, dark, desktop and mobile
Persona contract opt-outs
biber only ever exists inside EspoCRM through OIDC auto-provisioning (ESPOCRM_CONFIG_OIDC_CREATE_USER=true, templates/env.j2); the role itself seeds only the administrator account. In the services.sso.enabled: false matrix variants that provisioning path is gone and no native biber user exists, so templates/playwright.env.j2 renders PERSONA_BIBER_BLOCKED=true. The administrator and guest personas run in every variant.