Public Repository

Last pushed: a year ago
Short Description
PHP 5.3 fpm + APC + Memcached + sSMTP
Full Description

How to use

docker run --name=php53am --restart=always -d -v /var/www:/var/www -v /var/docker/php53am/php.ini:/etc/php5/fpm/php.ini --add-host smtp-server:123.123.123.123 --add-host mysql-server:123.123.123.123 -p 9000:9000 brahman/php53am

Dockerfile

FROM ubuntu:precise

MAINTAINER Pavel Emelianov pve@ctg66.ru

RUN apt-get update --fix-missing
RUN apt-get -y install php-pear php5-cgi php5-cli php5-common php5-curl php5-fpm php5-gd php5-imagick php5-intl php5-mcrypt php5-mysql php5-tidy php5-xsl php-apc php5-memcached memcached ssmtp

RUN sed -i '/^listen/c \
listen = 0.0.0.0:9000' /etc/php5/fpm/pool.d/www.conf

RUN sed -i 's/;daemonize = yes/daemonize = no/g' /etc/php5/fpm/php-fpm.conf

RUN sed -ri -e 's/^(mailhub=).*/\1smtp-server/' -e 's/^#(FromLineOverride)/\1/' /etc/ssmtp/ssmtp.conf

RUN mkdir /var/www

EXPOSE 9000

VOLUME /var/www

VOLUME /tmp

CMD service memcached start && /usr/sbin/php5-fpm

Docker Pull Command
Owner
brahman

Comments (0)