commit
53f1032975
|
@ -72,6 +72,15 @@ services:
|
||||||
- "dockerhost:${DOCKER_HOST_IP}"
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
environment:
|
environment:
|
||||||
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
||||||
|
|
||||||
|
### PHP Worker Container #####################################
|
||||||
|
php-worker:
|
||||||
|
build:
|
||||||
|
context: ./php-worker
|
||||||
|
volumes_from:
|
||||||
|
- applications
|
||||||
|
depends_on:
|
||||||
|
- workspace
|
||||||
|
|
||||||
### Nginx Server Container ##################################
|
### Nginx Server Container ##################################
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Image Setup
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# To take a look at the'php-worker' base Image, visit its DockerHub page
|
||||||
|
# https://hub.docker.com/r/nielsvdoorn/laravel-supervisor/
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM nielsvdoorn/laravel-supervisor
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Optional Supervisord Configuration
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Modify the ./supervisor.conf file to match your App's requirements.
|
||||||
|
# Make sure you rebuild your container with every change.
|
||||||
|
#
|
||||||
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Optional Software's Installation
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# If you need to modify this image, feel free to do it right here.
|
||||||
|
#
|
||||||
|
# -- Your awesome modifications go here -- #
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
# Final Touch
|
||||||
|
#--------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
|
||||||
|
RUN rm -r /var/lib/apt/lists/*
|
||||||
|
WORKDIR /etc/supervisor/conf.d/
|
|
@ -0,0 +1,9 @@
|
||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
[program:laravel-worker]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=php /var/www/laravel/artisan queue:work --sleep=3 --tries=3 --daemon
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
numprocs=8
|
||||||
|
redirect_stderr=true
|
Loading…
Reference in New Issue