Commit c9bda3dd authored by thomas craipeau's avatar thomas craipeau
Browse files

update

parent 94c4041a
version: '2'
services:
mongo:
image: mongo:3.6
volumes:
- ./code:/code
- mongodb:/data/db
- mongodb_config:/data/configdb
command: mongod
ports:
- "5017:27017"
front:
build: docker-front-apache-php56
container_name: frontapachephp56
ports:
- "5080:80"
- "5443:443"
volumes:
- ./code:/code
- mongodb:/data/db
- ./code/log:/var/log/apache2
depends_on:
- mongo
volumes:
mongodb:
mongodb_config:
\ No newline at end of file
FROM node:latest AS node
FROM php:5.6-apache-stretch
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
COPY --from=node /usr/local/bin/node /usr/local/bin/node
RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm
ENV COMPOSER_ALLOW_SUPERUSER=1
EXPOSE 80 443 9001
RUN apt-get update && apt-get install -my \
git \
zip \
gnupg \
iputils-ping \
libicu-dev \
unzip \
wget \
nano \
curl \
libmcrypt-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libcurl4-gnutls-dev
RUN pecl channel-update pecl.php.net & pecl install redis-4.0.1 \
&& pecl install mongodb-1.7.4
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install curl mcrypt \
&& docker-php-ext-enable redis mongodb curl mcrypt
# composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# PHP Extensions
COPY conf/php.ini /usr/local/etc/php/conf.d/app.ini
# Apache
COPY conf/vhost.conf /etc/apache2/sites-available/000-default.conf
COPY conf/apache.conf /etc/apache2/conf-available/z-app.conf
RUN a2enmod rewrite remoteip && \
a2enconf z-app
\ No newline at end of file
<Directory /code/pixelhumain/ph>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
; Enable XDebug
;zend_extension = xdebug.so
date.timezone = 'Europe/Paris'
; XDebug configuration
xdebug.remote_enable = 1
xdebug.renite_enable = 1
xdebug.max_nesting_level = 1000
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "/var/log"
runkit.internal_override = 1
; Show PHP errors
display_errors = on
error_reporting = E_ALL & ~E_WARNING
; Use PHP short tags
short_open_tag = on
output_buffering = on
<VirtualHost *:80>
DocumentRoot /code/pixelhumain/ph
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
\ No newline at end of file
......@@ -10,8 +10,6 @@ ENV COMPOSER_ALLOW_SUPERUSER=1
EXPOSE 80 443 9001
RUN apt-get update && apt-get install -my \
nginx \
supervisor \
git \
zip \
gnupg \
......@@ -30,13 +28,11 @@ RUN apt-get update && apt-get install -my \
RUN pecl install redis-4.0.1 \
&& pecl install xdebug-2.6.0 \
&& pecl install mongodb \
&& pecl install mcrypt-1.0.2
RUN pecl install runkit7-3.1.0a1
&& pecl install mcrypt-1.0.2
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-enable redis xdebug mongodb mcrypt runkit7 \
&& docker-php-ext-enable redis xdebug mongodb mcrypt \
&& docker-php-ext-install curl
# composer
......
; Enable XDebug
;zend_extension = xdebug.so
date.timezone = 'Europe/Paris'
; XDebug configuration
xdebug.remote_enable = 1
xdebug.renite_enable = 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment