Skip to content

Commit 9c7054a

Browse files
committed
added mongodb image + PHP7 driver
1 parent e7decda commit 9c7054a

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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

mongo/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+

php-fpm/Dockerfile-70

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
2630
RUN usermod -u 1000 www-data
2731

2832
WORKDIR /var/www/laravel

0 commit comments

Comments
 (0)