Public Repository

Last pushed: 8 months ago
Short Description
nginx, with php-fpm and phpredis extension, support for vhosts, based off of maxexcloo/nginx-php
Full Description

Components

  • nginx/1.6.3
  • php-fpm PHP 5.6.9-1~dotdeb+7.2
  • phpredis 2.2.7

Dockerfile

FROM maxexcloo/nginx-php
MAINTAINER apotek

RUN apt-get update && apt-get install -y wget unzip php5-dev

WORKDIR /tmp

RUN wget https://github.com/phpredis/phpredis/archive/2.2.7.zip
RUN unzip 2.2.7.zip

WORKDIR phpredis-2.2.7

RUN phpize
RUN ./configure
RUN make && make install
RUN cp modules/redis.so /usr/lib/php5/20131106
RUN mkdir -p /etc/php5/mods-available
RUN echo "extension=redis.so" > /etc/php5/mods-available/redis.ini

WORKDIR /etc/php5/cli/conf.d
RUN ln -s ../../mods-available/redis.ini 20-redis.ini

WORKDIR /etc/php5/fpm/conf.d
RUN ln -s ../../mods-available/redis.ini 20-redis.ini


# nginx mods
# Remove default server and add in support for multiple virtual hosts.
# Allows new vhosts to be added as /data/config/nginx-*.vhost files
RUN rm /etc/nginx/host.d/default.conf
ADD vhosts.conf /etc/nginx/host.d/vhosts.conf

# End up somewhere ok.
WORKDIR /
Docker Pull Command
Owner
apotek