OroCRM with Lando

Lando + OroCRM

OroCRM is an open source Client Relationship Management (CRM) application, built on top of Symfony, that allows you to create a 360° view of your customers across multiple channels, organize the sales pipeline, manage account and contact information, communicate with customers, run marketing campaigns and track campaign performance.

Since Lando doesn't have a recipe for OroCRM yet, I'll share my Landofile with you. It builds the stack necessary to run OroCRM on your machine for local development. As an extra, I also add a tooling command to start and stop Xdebug on the fly.

Database connection info:

  • Driver: pdo_mysql
  • Host: database
  • Port: 3306
  • Database: lamp
  • User: lamp
  • Password: lamp

Landofile for running OroCRM:

name: orocrm
recipe: lamp
config:
  webroot: public
  xdebug: false
  php:  7.4
services:
  phpmyadmin:
    type: phpmyadmin
    hosts:
      - database
  appserver:
    build_as_root:
      - curl -sL https://deb.nodesource.com/setup_12.x | bash -
      - apt install -y nodejs
      - apt install -y libtidy-dev
      - docker-php-ext-install tidy
    overrides:
      ports:
        - "0.0.0.0::80"
tooling:
  xdebug-on:
    service: appserver
    description: Enable xdebug for apache.
    cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload"
    user: root
  xdebug-off:
    service: appserver
    description: Disable xdebug for apache.
    cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload"
    user: root

Hope it's useful!

By José Fernandes