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

update mongo 3.6

parent 8d4526eb
version: '2'
services:
mongo:
image: mongo:3.4
image: mongo:3.6
#volumes:
# - ./code/data/db:/data/db
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
- mongodb36:/data/db
- mongodb36_config:/data/configdb
command: mongod
ports:
- "5017:27017"
......@@ -19,10 +19,10 @@ services:
volumes:
- ./code:/code
#- ./code/data/db:/data/db
- mongodb:/data/db
- mongodb36:/data/db
- ./code/log:/var/log/nginx
depends_on:
- mongo
volumes:
mongodb:
mongodb_config:
\ No newline at end of file
mongodb36:
mongodb36_config:
\ No newline at end of file
FROM php:5.6.31-fpm
ENV MONGO_URL ${MONGO_URL}
ONBUILD ENV MONGO_URL ${MONGO_URL}
ENV MONGO_DB ${MONGO_DB}
......@@ -7,11 +6,14 @@ ONBUILD ENV MONGO_URL ${MONGO_DB}
# Install packages
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
RUN apt-get update && apt-get install -my \
nginx \
curl \
supervisor \
wget \
zip \
git \
php5-curl \
php5-fpm \
php5-gd \
......@@ -20,9 +22,14 @@ RUN apt-get update && apt-get install -my \
php5-mcrypt \
php5-sqlite \
php5-xdebug \
php5-mongo \
php-apc
RUN pecl channel-update pecl.php.net && \
pecl install mongodb && \
docker-php-ext-enable mongodb
#docker-php-source delete && \
#rm -r /tmp/* /var/cache/* /var/www/html/*
# Remove default nginx configs.
RUN rm -f /etc/nginx/conf.d/*
......@@ -33,11 +40,11 @@ RUN rm -f /etc/nginx/conf.d/*
# * Prevent PHP Warning: 'xdebug' already loaded.
# * XDebug loaded with the core
RUN sed -i "s/user = www-data/user = root/" /etc/php5/fpm/pool.d/www.conf && \
sed -i "s/group = www-data/group = root/" /etc/php5/fpm/pool.d/www.conf && \
sed -i '/^;clear_env = no/s/^;//' /etc/php5/fpm/pool.d/www.conf && \
sed -i '/^;ping\.path/s/^;//' /etc/php5/fpm/pool.d/www.conf && \
sed -i '/^;pm\.status_path/s/^;//' /etc/php5/fpm/pool.d/www.conf && \
sed -i '/.*xdebug.so$/s/^/;/' /etc/php5/mods-available/xdebug.ini
sed -i "s/group = www-data/group = root/" /etc/php5/fpm/pool.d/www.conf && \
sed -i '/^;clear_env = no/s/^;//' /etc/php5/fpm/pool.d/www.conf && \
sed -i '/^;ping\.path/s/^;//' /etc/php5/fpm/pool.d/www.conf && \
sed -i '/^;pm\.status_path/s/^;//' /etc/php5/fpm/pool.d/www.conf && \
sed -i '/.*xdebug.so$/s/^/;/' /etc/php5/mods-available/xdebug.ini
# Add configuration files
COPY front-conf/nginx.conf /etc/nginx/
......
Markdown is supported
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