added mongodb image + PHP7 driver

This commit is contained in:
Amin Mkh 2016-05-29 14:19:43 +03:00
parent e7decdaaf7
commit 9c7054abe2
3 changed files with 23 additions and 0 deletions

View File

@ -139,6 +139,13 @@ services:
- "2080:2080"
links:
- beanstalkd
### Mongo Container ############################
mongo:
build: ./mongo
ports:
- "27017:27017"
### Workspace Utilities Container ###########################

12
mongo/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM mongo:latest
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
#COPY mongo.conf /usr/local/etc/mongo/mongo.conf
VOLUME /var/lib/mongo
CMD [ "mongod" ]
EXPOSE 27017

View File

@ -23,6 +23,10 @@ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-m
&& docker-php-ext-install memcached \
&& rm /tmp/memcached.tar.gz
# Install mongodb driver
RUN pecl install mongodb
RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/mongo.ini
RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel