Merge branch 'master' of https://github.com/AminMkh/laradock into AminMkh-master

* 'master' of https://github.com/AminMkh/laradock:
  added mongodb driver for php5.5 5.6
  added mongodb image + PHP7 driver
This commit is contained in:
Mahmoud Zalt 2016-06-01 12:59:17 +03:00
commit 1cb131ba36
6 changed files with 30 additions and 1 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

@ -19,6 +19,9 @@ RUN docker-php-ext-install \
RUN pecl install memcached \
&& docker-php-ext-enable memcached
# Install mongodb driver
RUN pecl install mongodb
RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel

View File

@ -19,6 +19,9 @@ RUN docker-php-ext-install \
RUN pecl install memcached \
&& docker-php-ext-enable memcached
# Install mongodb driver
RUN pecl install mongodb
RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel

View File

@ -23,6 +23,9 @@ 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 usermod -u 1000 www-data
WORKDIR /var/www/laravel

View File

@ -1,3 +1,4 @@
date.timezone = UTC
display_errors = Off
log_errors = On
log_errors = On
extension=mongodb.so