• Stars
    star
    327
  • Rank 123,856 (Top 3 %)
  • Language
    Dockerfile
  • Created almost 9 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Docker Image for Mautic

Docker Mautic Image

How to use this image

You can access and customize Docker Mautic from Official Docker Hub image.

Pulling image from Docker Hub

If you want to pull the latest stable image from DockerHub:

docker pull mautic/mautic:latest

Running Basic Container

Setting up MySQL Server:

$ docker volume create mysql_data

$ docker run --name percona -d \
    -p 3306:3306 \
    -e MYSQL_ROOT_PASSWORD=mypassword \
    -v mysql_data:/var/lib/mysql \
    percona/percona-server:5.7 \
     --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci

Running Mautic:

$ docker volume create mautic_data

$ docker run --name mautic -d \
    --restart=always \
    -e MAUTIC_DB_HOST=127.0.0.1 \
    -e MAUTIC_DB_USER=root \
    -e MAUTIC_DB_PASSWORD=mypassword \
    -e MAUTIC_DB_NAME=mautic \
    -e MAUTIC_RUN_CRON_JOBS=true \
    -e MAUTIC_TRUSTED_PROXIES=0.0.0.0/0 \
    -p 8080:80 \
    -v mautic_data:/var/www/html \
    mautic/mautic:latest

This will run a basic mysql service within Mautic on http://localhost:8080.

Customizing Mautic Container

The following environment variables are also honored for configuring your Mautic instance:

Database Options

  • -e MAUTIC_DB_HOST=... (defaults to the IP and port of the linked mysql container)
  • -e MAUTIC_DB_USER=... (defaults to "root")
  • -e MAUTIC_DB_PASSWORD=... (defaults to the value of the MYSQL_ROOT_PASSWORD environment variable from the linked mysql container)
  • -e MAUTIC_DB_NAME=... (defaults to "mautic")
  • -e MAUTIC_DB_TABLE_PREFIX=... (defaults to empty) Add prefix do Mautic Tables. Very useful when migrate existing databases from another server to docker.

If you'd like to use an external database instead of a linked mysql container, specify the hostname and port with MAUTIC_DB_HOST along with the password in MAUTIC_DB_PASSWORD and the username in MAUTIC_DB_USER (if it is something other than root).

If the MAUTIC_DB_NAME specified does not already exist on the given MySQL server, it will be created automatically upon startup of the mautic container, provided that the MAUTIC_DB_USER specified has the necessary permissions to create it.

Mautic Options

  • -e MAUTIC_RUN_CRON_JOBS=... (defaults to true - enabled) If set to true runs mautic cron jobs using included cron daemon
  • -e MAUTIC_TRUSTED_PROXIES=... (defaults to empty) If it's Mautic behind a reverse proxy you can set a list of comma-separated CIDR network addresses it sets those addresses as trusted proxies. You can use 0.0.0.0/0 or See documentation
  • -e MAUTIC_CRON_HUBSPOT=... (defaults to empty) Enables mautic crons for Hubspot CRM integration
  • -e MAUTIC_CRON_SALESFORCE=... (defaults to empty) Enables mautic crons for Salesforce integration
  • -e MAUTIC_CRON_PIPEDRIVE=... (defaults to empty) Enables mautic crons for Pipedrive CRM integration
  • -e MAUTIC_CRON_ZOHO=... (defaults to empty) Enables mautic crons for Zoho CRM integration
  • -e MAUTIC_CRON_SUGARCRM=... (defaults to empty) Enables mautic crons for SugarCRM integration
  • -e MAUTIC_CRON_DYNAMICS=... (defaults to empty) Enables mautic crons for Dynamics CRM integration

Enable / Disable Features

  • -e MAUTIC_TESTER=... (defaults to empty) Enables Mautic Github Pull Tester documentation

PHP options

  • -e PHP_INI_DATE_TIMEZONE=... (defaults to UTC) Set PHP timezone
  • -e PHP_MEMORY_LIMIT=... (defaults to 256M) Set PHP memory limit
  • -e PHP_MAX_UPLOAD=... (defaults to 20M) Set PHP upload max file size
  • -e PHP_MAX_EXECUTION_TIME=... (defaults to 300) Set PHP max execution time

Persistent Data Volumes

On first run Mautic is unpacked at /var/www/html. You need to attach a volume on this path to persist data.

Mautic Versioning

Mautic Docker has two ENV that you can specify an version do start your new container:

  • -e MAUTIC_VERSION (Defaults to "2.15.0")
  • -e MAUTIC_SHA1 (Defalts to "b07bd42bb092cc96785d2541b33700b55f74ece7")

Accesing the Instance

Access your new Mautic on http://localhost:8080 or http://host-ip:8080 in a browser.

... via docker-compose

Example docker-compose.yml for mautic:

version: '2'

services:

  mauticdb:
    image: percona/percona-server:5.7
    container_name: mauticdb
    volumes:
      - mysql_data:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=mysecret
    command:
      --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
    networks:
      - mautic-net

  mautic:
    image: mautic/mautic:latest
    container_name: mautic
    links:
      - mauticdb:mysql
    depends_on:
      - mauticdb
    ports:
      - 8080:80
    volumes:
      - mautic_data:/var/www/html
    environment:
      - MAUTIC_DB_HOST=mauticdb
      - MYSQL_PORT_3306_TCP=3306
      - MAUTIC_DB_USER=root
      - MAUTIC_DB_PASSWORD=mysecret
      - MAUTIC_DB_NAME=mautic
      - MAUTIC_RUN_CRON_JOBS=true
    networks:
      - mautic-net

volumes:
  mysql_data:
    driver: local
  mautic_data:
    driver: local
networks:
  mautic-net:
    driver: bridge

Run docker-compose up, wait for it to initialize completely, and visit http://localhost:8080 or http://host-ip:8080.

This compose file was tested on compose file version 3.0+ (docker engine 1.13.0+), see the relation of compose file and docker engine here.

Supported Docker versions

This image is officially supported on Docker version 1.7.1.

Support for older versions (down to 1.0) is provided on a best-effort basis.

User Feedback

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

You can also reach the Mautic community through its online forums or the Mautic Slack channel.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

License

Mautic is distributed under the GPL v3 license. Full details of the license can be found in the Mautic GitHub repository.

More Repositories

1

mautic

Mautic: Open Source Marketing Automation Software.
PHP
6,490
star
2

api-library

Mautic API Library
PHP
168
star
3

mautic-wordpress

Wordpress Plugin
PHP
118
star
4

documentation

Mautic End User Documentation
JavaScript
62
star
5

plugin-grapesjs-builder

GrapesJS HTML and MJML integration for Mautic
PHP
48
star
6

mautic-zapier

Zapier JS app communicating with Mautic
JavaScript
25
star
7

mautic-grav

Mautic integration into Grav CMS
PHP
23
star
8

mautic-typo3

Add-on TYPO3 extension that enhances the "EXT:marketing_automation" TYPO3 extension by connecting it to the Mautic Marketing Automation platform: Determine "Persona" from Mautic segments. Also provides additional services e.g. language synchronisation between Mautic and TYPO3.
PHP
21
star
9

mautic-documentation

User documentation for the Mautic project
JavaScript
19
star
10

MauticGeneratorBundle

Generator for Mautic bundles
PHP
16
star
11

mautic-joomla

Joomla Plugin
PHP
15
star
12

composer-plugin

A composer plugin that mautic plugin and theme developers can use to distribute their code.
PHP
14
star
13

plugin-helloworld

Hello World plugin built on the Integration framework
PHP
12
star
14

mautic-saelos-bundle

Bi-Directional Saelos integration plugin for Mautic
PHP
11
star
15

grapesjs-preset-mautic

GrapesJS preset configuration for the Mautic editor
JavaScript
11
star
16

mautic-drupal

Drupal plugin
8
star
17

plugin-crm

PHP
7
star
18

mautic-concrete5

Concrete5 Plugin
PHP
7
star
19

mautic-spi

Mautic Single Page Installer
PHP
7
star
20

mautic-helper-chrome-extension

JavaScript
7
star
21

mautic-community-handbook

A handbook for all things related to the Mautic Community
JavaScript
7
star
22

user-documentation

6
star
23

mautic-tester

Mautic Pull Request Tester
PHP
5
star
24

plugin-tagmanager

PHP
5
star
25

mautic-community-knowledgebase

A Knowledgebase for the Mautic community
5
star
26

website

The Mautic Website
5
star
27

language-packs

Public store of prepared Mautic language packs. Rebuilt every day from Transifex.
5
star
28

core-lib

PHP
5
star
29

recommended-project

This project template provides a starter kit for managing your Mautic dependencies with Composer.
4
star
30

core-composer-scaffold

PHP
4
star
31

plugin-focus

PHP
4
star
32

developer-documentation-new

New developer documentation on Read the Docs
4
star
33

theme-skyline

Twig
3
star
34

theme-sunday

Twig
3
star
35

theme-fresh-wide

CSS
3
star
36

plugin-clearbit

PHP
3
star
37

theme-aurora

Twig
3
star
38

theme-paprika

Twig
3
star
39

plugin-cloudstorage

PHP
3
star
40

theme-coffee

Twig
3
star
41

theme-sparse

Twig
3
star
42

core-project-message

PHP
3
star
43

theme-oxygen

Twig
3
star
44

plugin-fullcontact

PHP
3
star
45

theme-brienz

Twig
3
star
46

plugin-gmail

PHP
3
star
47

theme-vibrant

Twig
3
star
48

theme-mauve

Twig
3
star
49

theme-confirmme

Twig
3
star
50

theme-neopolitan

Twig
3
star
51

theme-nature

Twig
3
star
52

plugin-social

PHP
3
star
53

plugin-zapier

PHP
3
star
54

theme-cards

Twig
3
star
55

plugin-citrix

PHP
3
star
56

plugin-outlook

PHP
3
star
57

theme-fresh-left

CSS
3
star
58

theme-goldstar

Twig
3
star
59

theme-fresh-fixed

CSS
3
star
60

statsapp

Powers the Stats App and the Mautic 3 migration dashboard.
PHP
3
star
61

theme-trulypersonal

Truly Personal theme for Mautic
Twig
3
star
62

plugin-emailmarketing

PHP
3
star
63

grav-plugin-login-oauth2-auth0

PHP
3
star
64

theme-fresh-center

CSS
3
star
65

theme-blank

Twig
3
star
66

mautic.org-website

This repository relates to the mautic.org website. We accept PRs here to make changes, and issues to flag up problems that you might find or changes that are needed.
PHP
2
star
67

marketplace-allowlist

Repo that keeps track of the allowed plugins in the Mautic Marketplace.
2
star
68

Community-Portal

Mautic's community governance portal
HTML
2
star
69

mautic-gmail-plugin

1
star
70

Gsod

1
star
71

plugin-messagebird

MessageBird SMS Integration for >= Mautic 2.13
PHP
1
star
72

plugin-example

An example plugin that does nothing
PHP
1
star