Sign inSign up

klabs/nginx

By klabs

Updated almost 9 years ago

Nginx/php-fpm web server image to run your PHP project.

Image
0

334

klabs/nginx repository overview

Nginx/php 7.1 web server

This image runs the Nginx & php-fpm services.

Image is built on Debian Jessie.

The main software packages installed are:

  • Nginx 1.12
  • PHP 7.1

Nginx config

Nginx listens on ports:

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

Those can be remapped when running the container.

A controlpanel is available when running the container, providing links to access different tools such as :

  • PHP Info
  • Memcached Info
  • Memcached Admin
  • Solr Admin GUI
  • PhpMyAdmin
  • Varnish agent

Some virtual hosts are also burned into the image to provide easy access to your project with a dynamic DocumentRoot.

These virtual hosts will allow you to run eZ Publish (5 & Platform), Drupal or Symfony projects (DocumentRoot is /var/www/path_to_your_project_folder/web/).

You can override these virtual hosts by mounting your own virtual hosts (with the same file name) as volume when running the container.

The available virtual hosts file are available here.

How to run the container

You can run the container with the docker run command :

``` sh
docker run -p 80:80 -p 82:82 -p 88:88 klabs/nginx:7.1
```

Tag summary

Content type

Image

Digest

Size

263.5 MB

Last updated

almost 9 years ago

docker pull klabs/nginx:7.1