Public Repository

Last pushed: 6 months ago
Short Description
Short description is empty for this repo.
Full Description

Docker image for Centos7 Nginx PHP

Environments

  • ENV PHP_VERSION - default - 70u
  • ENV PHP_INI_FILE - default - etc/php.ini
  • ENV NGINX_CONF - default - /etc/nginx/conf.d/default.conf
  • ENV HOST_ENVIROMENT - default - dev
  • ENV PHP_EXT - default - 'fpm mysqlnd mcrypt pdo opcache xml gd cli curl devel mysql intl mbstring bcmath json'
  • ENV PHP_EXT_DEV - default - 'pecl-xdebug'

Available volums

  • /etc/nginx/conf.d/
  • /var/www/html/

Start container

docker run  -d -p YOUR_PORT:80 -v  YOUR_PROJECT_FOLDER:/var/www/ -v PART_TO_PROJECT_NGINX_CONF:/etc/nginx/conf.d/ --name nginx-server kidl/nginx-php

Access container terminal

docker exec -i -t nginx-server /bin/bash

Browse site

localhost:YOUR_PORT
Docker Pull Command
Owner
kidl

Comments (0)