Permalink
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (60 sloc) 6.45 KB

PHP with Nginx container layout

Automated build and tested by WebDevOps Build Server

Container Distribution name PHP Version
webdevops/php-nginx:ubuntu-12.04 precise PHP 5.3
webdevops/php-nginx:ubuntu-14.04 trusty (LTS) PHP 5.5
webdevops/php-nginx:ubuntu-15.04 vivid PHP 5.6
webdevops/php-nginx:ubuntu-15.10 wily PHP 5.6
webdevops/php-nginx:ubuntu-16.04 xenial (LTS) PHP 7.0
webdevops/php-nginx:ubuntu-16.10 yakkety PHP 7.0
webdevops/php-nginx:ubuntu-17.04 zesty PHP 7.0
webdevops/php-nginx:ubuntu-17.10 artful PHP 7.0
webdevops/php-nginx:ubuntu-18.04 bionic (LTS) PHP 7.2
webdevops/php-nginx:debian-7 wheezy PHP 5.4
webdevops/php-nginx:debian-8 jessie PHP 5.6
webdevops/php-nginx:debian-8-php7 jessie with dotdeb PHP 7.x (via dotdeb)
webdevops/php-nginx:debian-9 stretch PHP 7.0
webdevops/php-nginx:centos-7 PHP 5.4

Environment variables

Variable Description
CLI_SCRIPT Predefined CLI script for service
APPLICATION_UID PHP-FPM UID (Effective user ID)
APPLICATION_GID PHP-FPM GID (Effective group ID)
WEB_DOCUMENT_ROOT Document root for Nginx
WEB_DOCUMENT_INDEX Document index (eg. index.php) for Nginx
WEB_ALIAS_DOMAIN Alias domains (eg. *.vm) for Nginx

Filesystem layout

Directory Description
/opt/docker/etc/nginx Nginx configuration
/opt/docker/etc/nginx/ssl Nginx ssl configuration with example server.crt, server.csr, server.key
File Description
/opt/docker/etc/nginx/main.conf Main include file (will include global.conf, php.conf and vhost.conf)
/opt/docker/etc/nginx/global.conf Global nginx configuration options
/opt/docker/etc/nginx/php.conf PHP configuration (connection to FPM)
/opt/docker/etc/nginx/vhost.common.conf Vhost common stuff (placeholder)
/opt/docker/etc/nginx/vhost.conf Default vhost
/opt/docker/etc/nginx/vhost.ssl.conf Default ssl configuration for vhost
/opt/docker/etc/php/fpm/php-fpm.conf PHP FPM daemon configuration
/opt/docker/etc/php/fpm/pool.d/application.conf PHP FPM pool configuration

Container info

Image Info
webdevops/php-nginx:latest
webdevops/php-nginx:ubuntu-12.04
webdevops/php-nginx:ubuntu-14.04
webdevops/php-nginx:ubuntu-15.04
webdevops/php-nginx:ubuntu-15.10
webdevops/php-nginx:ubuntu-16.04
webdevops/php-nginx:ubuntu-16.10
webdevops/php-nginx:ubuntu-17.04
webdevops/php-nginx:ubuntu-17.10
webdevops/php-nginx:ubuntu-18.04
webdevops/php-nginx:centos-7
webdevops/php-nginx:debian-7
webdevops/php-nginx:debian-8
webdevops/php-nginx:debian-8-php7
webdevops/php-nginx:debian-9