added mongodb image + PHP7 driver
This commit is contained in:
parent
e7decdaaf7
commit
9c7054abe2
@ -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 ###########################
|
||||||
|
|
||||||
|
12
mongo/Dockerfile
Normal file
12
mongo/Dockerfile
Normal 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
|
||||||
|
|
@ -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 \
|
&& docker-php-ext-install memcached \
|
||||||
&& rm /tmp/memcached.tar.gz
|
&& 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
|
RUN usermod -u 1000 www-data
|
||||||
|
|
||||||
WORKDIR /var/www/laravel
|
WORKDIR /var/www/laravel
|
||||||
|
Loading…
Reference in New Issue
Block a user