diff --git a/docker-compose.yml b/docker-compose.yml index dd3ad77..5557da0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -139,6 +139,13 @@ services: - "2080:2080" links: - beanstalkd + +### Mongo Container ############################ + + mongo: + build: ./mongo + ports: + - "27017:27017" ### Workspace Utilities Container ########################### diff --git a/mongo/Dockerfile b/mongo/Dockerfile new file mode 100644 index 0000000..9662d6f --- /dev/null +++ b/mongo/Dockerfile @@ -0,0 +1,12 @@ +FROM mongo:latest + +MAINTAINER Mahmoud Zalt + +#COPY mongo.conf /usr/local/etc/mongo/mongo.conf + +VOLUME /var/lib/mongo + +CMD [ "mongod" ] + +EXPOSE 27017 + diff --git a/php-fpm/Dockerfile-70 b/php-fpm/Dockerfile-70 index 61f21d0..00235d7 100644 --- a/php-fpm/Dockerfile-70 +++ b/php-fpm/Dockerfile-70 @@ -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