File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,13 @@ services:
139139 - " 2080:2080"
140140 links :
141141 - beanstalkd
142+
143+ # ## Mongo Container ############################
144+
145+ mongo :
146+ build : ./mongo
147+ ports :
148+ - " 27017:27017"
142149
143150# ## Workspace Utilities Container ###########################
144151
Original file line number Diff line number Diff line change 1+ FROM mongo:latest
2+
3+ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
4+
5+ # COPY mongo.conf /usr/local/etc/mongo/mongo.conf
6+
7+ VOLUME /var/lib/mongo
8+
9+ CMD [ "mongod" ]
10+
11+ EXPOSE 27017
12+
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-m
2323 && docker-php-ext-install memcached \
2424 && rm /tmp/memcached.tar.gz
2525
26+ # Install mongodb driver
27+ RUN pecl install mongodb
28+ RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/mongo.ini
29+
2630RUN usermod -u 1000 www-data
2731
2832WORKDIR /var/www/laravel
You can’t perform that action at this time.
0 commit comments