Commit 1cb131ba authored by Mahmoud Zalt's avatar Mahmoud Zalt

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
parents 8993cccc 1090bb4d
...@@ -139,6 +139,13 @@ services: ...@@ -139,6 +139,13 @@ services:
- "2080:2080" - "2080:2080"
links: links:
- beanstalkd - beanstalkd
### Mongo Container ############################
mongo:
build: ./mongo
ports:
- "27017:27017"
### Workspace Utilities Container ########################### ### Workspace Utilities Container ###########################
......
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
...@@ -19,6 +19,9 @@ RUN docker-php-ext-install \ ...@@ -19,6 +19,9 @@ RUN docker-php-ext-install \
RUN pecl install memcached \ RUN pecl install memcached \
&& docker-php-ext-enable memcached && docker-php-ext-enable memcached
# Install mongodb driver
RUN pecl install mongodb
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel WORKDIR /var/www/laravel
......
...@@ -19,6 +19,9 @@ RUN docker-php-ext-install \ ...@@ -19,6 +19,9 @@ RUN docker-php-ext-install \
RUN pecl install memcached \ RUN pecl install memcached \
&& docker-php-ext-enable memcached && docker-php-ext-enable memcached
# Install mongodb driver
RUN pecl install mongodb
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel WORKDIR /var/www/laravel
......
...@@ -23,6 +23,9 @@ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-m ...@@ -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 \ && docker-php-ext-install memcached \
&& rm /tmp/memcached.tar.gz && rm /tmp/memcached.tar.gz
# Install mongodb driver
RUN pecl install mongodb
RUN usermod -u 1000 www-data RUN usermod -u 1000 www-data
WORKDIR /var/www/laravel WORKDIR /var/www/laravel
......
date.timezone = UTC date.timezone = UTC
display_errors = Off display_errors = Off
log_errors = On log_errors = On
\ No newline at end of file extension=mongodb.so
\ No newline at end of file
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