From 69aa0b2b6a64a44659c815742039a9e24612b1a7 Mon Sep 17 00:00:00 2001 From: Yuqi Hao <45658979+haoyq02@users.noreply.github.com> Date: Mon, 22 Jul 2019 22:29:37 +0800 Subject: [PATCH] fix:laravel-horizon (#2181) --- docker-compose.yml | 1 + laravel-horizon/Dockerfile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 86dfda7..69b5dc6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -245,6 +245,7 @@ services: - INSTALL_PGSQL=${PHP_FPM_INSTALL_PGSQL} - INSTALL_BCMATH=${PHP_FPM_INSTALL_BCMATH} - INSTALL_MEMCACHED=${PHP_FPM_INSTALL_MEMCACHED} + - INSTALL_AMQP=${PHP_FPM_INSTALL_AMQP} volumes: - ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER} - ./laravel-horizon/supervisord.d:/etc/supervisord.d diff --git a/laravel-horizon/Dockerfile b/laravel-horizon/Dockerfile index f21dfdd..e89468e 100644 --- a/laravel-horizon/Dockerfile +++ b/laravel-horizon/Dockerfile @@ -32,6 +32,12 @@ RUN if [ ${INSTALL_BCMATH} = true ]; then \ docker-php-ext-install bcmath \ ;fi +#Install Sockets package: +ARG INSTALL_AMQP=false +RUN if [ ${INSTALL_AMQP} = true ]; then \ + docker-php-ext-install sockets \ + ;fi + # Install PostgreSQL drivers: ARG INSTALL_PGSQL=false RUN if [ ${INSTALL_PGSQL} = true ]; then \