# docker-php-test **Repository Path**: caohui/docker-php-test ## Basic Information - **Project Name**: docker-php-test - **Description**: docker-php-test yii - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-08-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ABOUT ===== + This repository provides a dockerised bundle of nginx and php5-fpm. + The container is running nginx-1.4.6 and php5-fpm-5.5.9 on Ubuntu 14.04 LTS. CONFIG ====== + Replace or modify the provided configuration files in `conf/`. **Be careful with the daemons !** Both nginx and php5-fpm need to be run in non-daemon mode by supervisord. As such, changes have been made in the config files; if you replace them by yours, be careful to add : * `daemon off;` in your nginx.conf * `daemonize = no;` in your php-fpm.conf BUILD ===== 1. Clone the repo and cd into it 2. Build the image with `docker build -t bulgroz/nginxphp .` USAGE ===== This image exposes 3 volumes `/etc/nginx/sites-enabled`, `/etc/nginx/sites-available` and `/home/www`. Run it with `docker run -d -p 127.0.0.1:80:80 -v //sites-enabled:/etc/nginx/sites-enabled bulgroz/nginxphp` * You probably want to run this image on a public interface (and not localhost), change the ip adress accordingly. * You can mount multiple directories by passing multiple -v arguments