Skip to content

Commit 1394a46

Browse files
committed
Add MongoDB
1 parent 3410213 commit 1394a46

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ services:
3535
MYSQL_PASSWORD: password_test
3636
ports:
3737
- "3306:3306"
38+
39+
mongodb:
40+
image: mongo:3.4

docker/php/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ RUN apt-get update && apt-get install -y \
1717
intl \
1818
opcache
1919

20+
# MongoDB extension for PHP 7
21+
RUN pecl install mongodb \
22+
&& docker-php-ext-enable mongodb
23+
2024
# Install GD
2125
RUN apt-get install -y \
2226
libfreetype6-dev \

0 commit comments

Comments
 (0)