Sign inSign up

cvidal/nginxphp

By cvidal

Updated over 9 years ago

Nginx serer with php-fpm

Image
0

849

cvidal/nginxphp repository overview

Notes:

This image use php 5.6

Entry point:

The entry point will check for presence of two environement variables:

  • VIRTUAL_HOST
  • VIRTUAL_HOST_ALIAS

VIRTUAL_HOST is mandatory.

Both variables must contains a coma separated list of domain name that will be used to configure nginx server Those domain list are converted to a nginx server_name statement stored in:

  • /conf/nginx/virtual_host.conf for VIRTUAL_HOST
  • /conf/nginx/virtual_host_alias.conf for VIRTUAL_HOST_ALIAS

Thoses files can then be included in project specific configuration to simplifie configuration

Config notes:

The nginx configuration stored in this image is NOT complete, users of this image MUST provide a nginx config file at the following place: /conf/nginx/sites-enabled/sites.conf;

It must contain the nginx server block and include the /conf/nginx/virtual_host.conf file

Config:

environment:
   - VIRTUAL_HOST=nom-de-domaine.com 
   - VIRTUAL_HOST_ALIAS=alias-nom-de-domaine.com

Tag summary

Content type

Image

Digest

Size

110.7 MB

Last updated

over 9 years ago

docker pull cvidal/nginxphp