File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM php:7.0 -alpine
1
+ FROM php:7.1 -alpine
2
2
3
- MAINTAINER ipunkt Business Solutions <
[email protected] >
3
+ LABEL maintainer=
"ipunkt Business Solutions <[email protected] >"
4
+ LABEL version="php7.1-v2.0"
5
+ LABEL description="A supervisor configured to run with laravel artisan queue:work or artisan horizon command"
4
6
5
7
ENV PYTHON_VERSION=2.7.12-r0
6
8
ENV PY_PIP_VERSION=8.1.2-r0
7
- ENV SUPERVISOR_VERSION=3.3.1
9
+ ENV SUPERVISOR_VERSION=3.3.3
8
10
9
11
ENV QUEUE_CONNECTION=redis
10
12
ENV QUEUE_NAME=default
13
+ ENV LARAVEL_HORIZON=false
11
14
12
15
# Install pdo if you want to use database queue
13
- RUN docker-php-ext-install pdo pdo_mysql
16
+ RUN docker-php-ext-install pdo pdo_mysql pcntl posix
14
17
15
18
# Install supervisor
16
19
RUN apk update && apk add -u python=$PYTHON_VERSION py-pip=$PY_PIP_VERSION
@@ -21,6 +24,7 @@ WORKDIR /etc/supervisor/conf.d
21
24
22
25
# Use local configuration
23
26
COPY laravel-worker.conf.tpl /etc/supervisor/conf.d/laravel-worker.conf.tpl
27
+ COPY laravel-horizon.conf.tpl /etc/supervisor/conf.d/laravel-horizon.conf.tpl
24
28
25
29
# Copy scripts
26
30
COPY init.sh /usr/local/bin/init.sh
You can’t perform that action at this time.
0 commit comments