Public | Automated Build

Last pushed: 2 months ago
Short Description
Nginx 2.4 with PHP-FPM 7.1 image used to run eZ Publish or Symfony applications.
Full Description

Nginx/php 7.1 web server

This container runs the Nginx & php-fpm services.

Image is built on Debian Jessie.

The main software packages installed are:

  • Nginx 1.2
  • PHP 7.1

Nginx config

Nginx listens on ports:

  • 80 (dev vhost)
  • 82 (demo vhost)
  • 88 (controlpanel vhost)

Those can be remapped when running the container.

The controlpanel vhost is baked-in into the container, whereas other dynamic virtual hosts config files must be mounted as volumes.
This way it is faster to modify a vhost config and restart the Nginx service without having to rebuild the container.

How to run the container

You can run the container with the docker run command :

``` sh
docker run klabs/nginx_php71

But is is strongly recommended to use docker-compose with the script provided in ezdocker-stack repository.

Docker Pull Command
Source Repository

Comments (0)