Utilise des images pour mailcatcher et phpfpm

This commit is contained in:
2017-04-21 22:38:43 +02:00
parent d747734ad8
commit 8c330bfcd0
3 changed files with 2 additions and 32 deletions

View File

@@ -9,7 +9,7 @@ mariadb:
- MYSQL_ROOT_PASSWORD=MyPassWord48
php:
build: ./php-fpm
image: daiko/phpfpm-dev:latest
expose:
- 9000
volumes:
@@ -38,7 +38,7 @@ nginx:
- php
mailcatcher:
build: ./mailcatcher
image: daiko/mailcatcher:latest
volumes:
- ./config/smtpd.conf:/etc/smtpd.conf
- ./config/mailname:/etc/mailname

View File

@@ -1,5 +0,0 @@
FROM ruby
RUN gem install mailcatcher
ENTRYPOINT ["mailcatcher", "-f", "--ip", "0.0.0.0", "--smtp-port", "25", "--no-quit"]

View File

@@ -1,25 +0,0 @@
FROM php:7-fpm
RUN curl -o /tmp/xdebug.tgz https://xdebug.org/files/xdebug-2.5.0.tgz && \
mkdir -p /usr/src/php/ext/xdebug && \
tar xzf /tmp/xdebug.tgz -C /usr/src/php/ext/xdebug/ && \
rm /tmp/xdebug.tgz && \
mv /usr/src/php/ext/xdebug/xdebug*/* /usr/src/php/ext/xdebug/
RUN apt-get update && apt-get install -y \
ssmtp \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
mariadb-client \
&& docker-php-ext-install -j$(nproc) iconv mcrypt gd zip sockets \
&& docker-php-ext-install -j$(nproc) mysqli pdo pdo_mysql \
&& docker-php-ext-install -j$(nproc) xdebug\
&& apt-get purge -y --auto-remove $buildDeps \
&& cd /usr/src/php/ext/xdebug/ \
&& make clean \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN setcap cap_net_raw=eip /usr/local/bin/php