Docker PHP 7.0 Image
Suitable a WordPress Multisite
Includes Nginx configuration, Composer, Outgoing Authenticated SMTP email, and Cron capabilities.
This Docker Recipe is distributed under the GPL v3 license.
How to use this image
you need a Docker host configured to use both a current Docker and Docker Compose with network access and git installed.
make sure you have a MySQL or MariaDB running either on your Docker host, or in a container
clone this repo:
git clone firstname.lastname@example.org:oeru/docker-wpms.gitwhich will, by default, create a directory called 'docker-mautic'
create a local docker-compose.yml by copying docker-compose.yml-sample:
cp docker-compose.yml-sample docker-compose.ymland 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 you can tweak the ports assignments to make it publicly visible (I encourage defaulting to SSL!).
Copy the appropriate nginx-proxy.conf sample into your /etc/nginx/sites-available directory as, say a file named after YOUR_DOMAIN,
edit that YOUR_DOMAIN file to substitute in your variable values (for YOUR_DOMAIN, etc.) and add it to your sites-enabled variable (making relevant substitutions)
sudo cd /etc/nginx/sites-enabled sudo ln -sf /etc/nginx/sites-available/YOUR_DOMAIN .
test your nginx instance to make sure it's happy:
if you're setting up Let's Encrypt certs you'll might need to comment out all the secure stuff to get NGINX to restart properly with your new configuration (it'll complain about the missing cert files otherwise) and then run the
letsencrypt certonly --webroot -w /var/www/letsencrypt -d YOUR_DOMAIN. If that finishes with a "Congratulations!" then uncomment the SSL-related configuration and reload nginx.
you also need to create a directory on your Docker host for your WordPress code, and reference it in the yml file.
docker-compose up -d && docker-compose logs -f, wait for it to initialize completely (you'll be shown the debugging information spat out by the containers - hit CTRL-C to get out of the logging - this won't shut down your containers - use
docker-compose stopto do that), and visit
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.
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!