Commit 5385a12b authored by Dave Lane's avatar Dave Lane
Browse files

fixed Dockerfile and updated README to point to tech.oeru.org site

parent a76bb8ec
......@@ -20,7 +20,7 @@ RUN echo 'cgi.fix_pathinfo = 0;' >> /usr/local/etc/php/conf.d/php.ini
# set up cron tasks
RUN echo '# cron jobs for Mautic - dave@oerfoundation.org' > /etc/cron.d/mautic-cron
RUN echo '# see https://mautic.org/docs/en/setup/cron_jobs.html for details' >> /etc/cron.d/mautic-cron
RUN echo 'CONSOLE=/var/www/html/app/console'
RUN echo 'CONSOLE=/var/www/html/app/console' >> /etc/cron.d/mautic-cron
RUN echo '# Run Segment updates 3 times per hour' >> /etc/cron.d/mautic-cron
RUN echo '0,20,40 * * * * root php $CONSOLE mautic:segments:update' >> /etc/cron.d/mautic-cron
RUN echo '# Run Campaign updates - ensure candidates are correct - 3 times per hour' >> /etc/cron.d/mautic-cron
......
......@@ -4,27 +4,31 @@ Docker Mautic Image
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](https://github.com/mautic/mautic/blob/staging/LICENSE.txt).
# 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.
1. make sure you have a MySQL or MariaDB running either on your Docker host, or in a container
1. clone this repo:
1. clone this repo:
`git clone git@github.com:oeru/docker-mautic.git`
which will, by default, create a directory called 'docker-mautic'
1. 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!).
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!).
1. 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.
1. you also need to create a directory on your Docker host for your Mautic code, and reference it in the yml file.
1. you also need to create a directory on your Docker host for your Mautic code, and reference it in the yml file.
1. then run
`docker-compose up`
1. 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.
1. Run `docker-compose up`, wait for it to initialize completely, and visit `http://localhost:8080` or `http://host-ip:8080`.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment