Public Repository

Last pushed: 3 years ago
Short Description
Nginx Running with PHP-FPM
Full Description

Nginx + PHP-FPM With the help of supervisor.

Dockerfile --------------

FROM nginx

Install php-fpm and other php extensions

RUN apt-get update && \
apt-get install -y php5-fpm supervisor php5-cli php5-gd php5-mcrypt php5-mysql php5-curl \
php5-apcu php5-intl php5-sqlite php5-xsl php5-common php5-json \
php5-gearman php5-mcrypt php5-memcache php5-imap php5-imagick php5-mongo

RUN echo "daemon off;" >> /etc/nginx/nginx.conf
RUN echo "listen.owner = nginx" >> /etc/php5/fpm/pool.d/www.conf
RUN echo " = nginx" >> /etc/php5/fpm/pool.d/www.conf

ADD ./supervisord.conf /etc/supervisor/conf.d/supervisord.conf

ADD ./ /
RUN chmod 755 /

EXPOSE 80 9000
CMD ["/usr/bin/supervisord"]

Docker Pull Command