Skip to content

oeru/docker-mautic

 
 

Repository files navigation

Docker Mautic Image

License

Mautic (and this Docker Recipe) is distributed under the GPL v3 license. Full details of the license can be found in the Mautic GitHub repository.

How to use this image

These instructions might be useful to some, so I'm leaving them here, but I've written more comprehensive instructions on https://tech.oeru.org/installing-mautic-php7-fpm-docker-nginx-and-mariadb-ubuntu-1604

  1. you need a Docker host configured to use both a current Docker and Docker Compose with network access and git installed.

  2. make sure you have a MySQL or MariaDB running either on your Docker host, or in a container

  3. clone this repo: git clone [email protected]:oeru/docker-mautic.git which will, by default, create a directory called 'docker-mautic'

  4. create a local docker-compose.yml by copying docker-compose.yml-sample: cd docker-mautic cp docker-compose.yml-sample docker-compose.yml and the edit the file to specify the details of your MySQL or MariaDB database. You need to specify a user who has the ability to create a database. Also, if you're running an nginx container, you can tweak the ports assignments to make it publicly visible (I encourage defaulting to SSL!).

  5. adjust the nginx "default.conf" (replace it with "ssl.conf" if you want to offer secure hosting!) and set up the path to your repo in the yml file so that the nginx container can find the conf file.

  6. you also need to create a directory on your Docker host for your Mautic code, and reference it in the yml file.

  7. then run docker-compose up to pull (if necessary) and run your mautic (and, if you're using it) your nginx container. If you're running it locally, access it via http://localhost:8083 in a browser.

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

Running a MySQL/MariaDB container...

If you're running MySQL or MariaDB in another container, add another stanza to this yml file to describe it and link it with the mautic stanza!

mautic:
  image: kiwilightweight/mautic
  links:
    - mauticdb:mysql
  ports:
    - ...
mauticdb:
  image: mariadb

Supported Docker versions

This has been tested on Docker 1.13.1 on Ubuntu Linux 16.04 and requires Docker 1.10.x or better.

User Feedback

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue. We will endeavour to assist, although we're doing this through enlightened self-interest, so can't provide any guarantees!

About

Docker Image for Mautic - this project has moved to Gitlab:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 41.1%
  • Shell 34.0%
  • PHP 24.9%