Public | Automated Build

Last pushed: a year ago
Short Description
Wordpress-test
Full Description

nginx-4-wordpress-fpm

nginx-4-wordpress-fpm docker images complements wordpress:*-fpm official images. Apache alternatives serves http request. In order to allow PHP-fpm serve http request a webserver is needed (nginx).

This image uses PHP_FPM_SOCK environment variable to customize the location of the socket (usually port 9000 of php-fpm container).

Following, a docker-compose.yml that prepares a ready to use wordpress installation.

version: '2.0'

services:
  mysql:
    image: 'mysql:5.7'
    environment:
      - MYSQL_ROOT_PASSWORD=secret

  php-fpm:
    image: wordpress:4.6-fpm
    environment:
      - WORDPRESS_DB_USER=root
      - WORDPRESS_DB_PASSWORD=secret
    volumes:
      - './data/html:/var/www/html'

  web:
    image: bcardiff/nginx-4-wordpress-fpm
    environment:
      - PHP_FPM_SOCK=php-fpm:9000
    ports:
      - 8080:80
    volumes:
      - './data/html:/var/www/html'
Docker Pull Command
Owner
vitalyv
Source Repository