Public | Automated Build

Last pushed: 6 months ago
Short Description
Nginx-PHP Stack
Full Description

LEP Stack with Nginx and PHP

Build and tested by Mosaicoon

Versions

Other versions coming soon!

Image Distro Nginx Version PHP Version Image Info
mosaicoon/lep:stable Alpine 3.4 Nginx 1.10.1 PHP 7.0.11
mosaicoon/lep:wp Alpine 3.4 Nginx 1.10.1 PHP 7.0.11
mosaicoon/lep:latest Alpine 3.3 Nginx 1.9 PHP 5.6
mosaicoon/lep:1956 Alpine 3.3 Nginx 1.9 PHP 5.6
mosaicoon/lep:197 Debian Jessye Nginx 1.9 PHP 7
mosaicoon/lep:197-kafkalib Debian Jessye Nginx 1.9 PHP 7

Usage

using the docker command:

docker run --rm \
-p "8080:80"  \
-e "APP_CWD=/app/code" \
-e "VHOST_ROOT=/app/code/public" \
-e "PHP_DISPLAYERRORS=On" \
-e "PHP_ERRORREPORTING=E_ALL" \
-e "FPM_CLEARENV=no" \
-e "MY_ENVIRONMENT=develop" \
-v .../host-code-path/:/app/code \
--name my-lep-container \
mosaicoon/lep:latest

using the docker-compose file:

version: '2'
services:
    app-node-name:
        image: mosaicoon/lep:latest
        ports:
            - "8080:80"
        volumes:
            - ./:/app/code
        working_dir: /app/code
        environment:
            APP_CWD:  /app/code
            VHOST_ROOT:  /app/code/public
            PHP_DISPLAYERRORS: "On"
            PHP_ERRORREPORTING: E_ALL
            FPM_CLEARENV: "no"
            MY_ENVIRONMENT: develop

Application Environment variables

Variable Default Value
APP_CWD /app/code
APP_USER application
APP_GROUP nginx

PHP Environment variables

Variable Default Value
PHP_MAXEXECUTIONTIME 30
PHP_MEMORYLIMIT 128M
PHP_DISPLAYERRORS Off
PHP_DISPLASTARTUPERRORS Off
PHP_ERRORREPORTING E_ALL & ~E_DEPRECATED & ~E_STRICT
PHP_VARIABLESORDER GPCS
PHP_POSTMAXSIZE 8M
PHP_UPLOADMAXFILESIZE 2M
PHP_SHORTOPENTAG Off

Virtual Host Environment variables

Variable Default Value
VHOST_ROOT /app/code
VHOST_INDEX index.php

PHP-FPM Environment variables

Variable Default Value
FPM_USER application
FPM_GROUP nginx
FPM_LISTEN 127.0.0.1:9000
FPM_CLEARENV no
Docker Pull Command
Owner
mosaicoon
Source Repository

Comments (0)