Skip to content

Commit b753c05

Browse files
authored
Merge pull request laradock#2350 from walterjrp/patch-2
laravel-horizon support Install MongoDB drivers
2 parents 0a4e832 + 8474acd commit b753c05

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ services:
271271
- INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS}
272272
- INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
273273
- INSTALL_PHPREDIS=${LARAVEL_HORIZON_INSTALL_PHPREDIS}
274+
- INSTALL_MONGO=${LARAVEL_HORIZON_INSTALL_MONGO}
274275
volumes:
275276
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
276277
- ./laravel-horizon/supervisord.d:/etc/supervisord.d

env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ NGINX_SSL_PATH=./nginx/ssl/
238238

239239
LARAVEL_HORIZON_INSTALL_SOCKETS=false
240240
LARAVEL_HORIZON_INSTALL_PHPREDIS=true
241+
LARAVEL_HORIZON_INSTALL_MONGO=false
241242

242243
### APACHE ################################################
243244

laravel-horizon/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
7474
&& docker-php-ext-enable cassandra \
7575
;fi
7676

77+
# Install MongoDB drivers:
78+
ARG INSTALL_MONGO=false
79+
RUN if [ ${INSTALL_MONGO} = true ]; then \
80+
pecl install mongodb \
81+
&& docker-php-ext-enable mongodb \
82+
;fi
7783

7884

7985
###########################################################################

0 commit comments

Comments
 (0)