Merge pull request #2350 from walterjrp/patch-2
laravel-horizon support Install MongoDB drivers
This commit is contained in:
commit
b753c0580e
@ -271,6 +271,7 @@ services:
|
||||
- INSTALL_SOCKETS=${LARAVEL_HORIZON_INSTALL_SOCKETS}
|
||||
- INSTALL_CASSANDRA=${PHP_FPM_INSTALL_CASSANDRA}
|
||||
- INSTALL_PHPREDIS=${LARAVEL_HORIZON_INSTALL_PHPREDIS}
|
||||
- INSTALL_MONGO=${LARAVEL_HORIZON_INSTALL_MONGO}
|
||||
volumes:
|
||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
|
||||
- ./laravel-horizon/supervisord.d:/etc/supervisord.d
|
||||
|
@ -238,6 +238,7 @@ NGINX_SSL_PATH=./nginx/ssl/
|
||||
|
||||
LARAVEL_HORIZON_INSTALL_SOCKETS=false
|
||||
LARAVEL_HORIZON_INSTALL_PHPREDIS=true
|
||||
LARAVEL_HORIZON_INSTALL_MONGO=false
|
||||
|
||||
### APACHE ################################################
|
||||
|
||||
|
@ -74,6 +74,12 @@ RUN if [ ${INSTALL_CASSANDRA} = true ]; then \
|
||||
&& docker-php-ext-enable cassandra \
|
||||
;fi
|
||||
|
||||
# Install MongoDB drivers:
|
||||
ARG INSTALL_MONGO=false
|
||||
RUN if [ ${INSTALL_MONGO} = true ]; then \
|
||||
pecl install mongodb \
|
||||
&& docker-php-ext-enable mongodb \
|
||||
;fi
|
||||
|
||||
|
||||
###########################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user