This Docker image adds LDAP and Memcached PHP Extension to official Wordpress fpm image for WordPress plugins.
5.1.1-fpm, latest4.9.1-fpm4.8.3-fpm4.8.0-fpm4.7.3-fpm
- Add wp-cli running php7.1-cli official image based on debian
- Enable WP-CACHE in wp-config.php
- Build & Validate using Travis CI and Jenkins CI
- Add WP-FFPC plugin for object caching to Memcached
- Add Simple-Ldap-Login plugin for LDAP/AD authentication
- Enable HTTP/2 support in Nginx
Note: The
clicontainer will be flapping until the Wordpress site configured.
version: '2'volumes:
wordpress-db:
wordpress-data:
services:
mariadb:
image: amd64/mariadb:10.2environment:
MYSQL_DATABASE: wordpressMYSQL_PASSWORD: Chang3M3MYSQL_ROOT_PASSWORD: Change3M34ls0MYSQL_USER: wordpressvolumes:
- wordpress-db:/var/lib/mysqlmemcached:
image: amd64/memcached:1.5nginx:
build: nginx/image: fjudith/wordpress:nginxports:
- 32716:443/tcp
- 32715:80/tcplinks:
- memcached:memcached
- wordpress:wordpressvolumes:
- wordpress-data:/var/www/html:rwwordpress:
build: php7-fpm/image: fjudith/wordpress:php7-fpmenvironment:
WORDPRESS_DB_HOST: mysqlWORDPRESS_DB_NAME: wordpressWORDPRESS_DB_USER: wordpressWORDPRESS_DB_PASSWORD: Chang3M3links:
- memcached:memcached
- mariadb:mysqlvolumes:
- wordpress-data:/var/www/htmlcli:
build: cli/image: fjudith/wordpress:clistdin_open: truetty: truedepends_on:
- mariadb
- wordpresslinks:
- mariadb:mysqlvolumes:
- wordpress-data:/var/www/htmlOnce the initial site configuration performed, navigate to Plugins, activate WP-FFPC and click Settings.
Set the following minimal configuration options:
- Cache Type/Select Backend: PHP Memcached
- Backend Settings/Hosts: memcached:11211
- Backend Settings/Authentication: username: Empty
- Backend Settings/Authentication: password: Empty
- Backend Settings/Enable memcached binary mode: Activated
Because the docker-compose levegare persistent volume in the Wordpress root directory, its required to open a session in the cli container in order to run the command wp core update.
Open a terminal session in the cli container.
WP_CLI=$(docker ps -qa -f ancestor=fjudith/wordpress:cli)
docker container exec -it ${WP_CLI} bashRun the following commands to update the application engine, the plugins and themes.
wp core update
wp plugins update --all
wp theme update --allRun the following commands
WP_CLI=$(docker ps -qa -f ancestor=fjudith/wordpress:cli)
docker container exec${WP_CLI} bash -c 'wp core update && wp plugins update --all && wp theme update --all'https://wooster.checkmy.ws/2015/10/wordpress-docker/https://ejosh.co/de/2015/08/wordpress-and-docker-the-correct-way/docker-library/php#132https://developer.wordpress.org/cli/commands/
