Skip to content
Snippets Groups Projects
Commit 477b68e7 authored by Alex's avatar Alex
Browse files

Add supervisor in Dockerfile

parent 32056b62
No related branches found
No related tags found
1 merge request!1Include Wowa Training
Pipeline #5581 passed
......@@ -20,6 +20,10 @@ RUN npm --version && npm install && npm run prod
FROM php:7.4-apache
RUN apt-get update && apt-get install supervisor -y
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord"]
### PHP
# we may need some other php modules, but we can first check the enabled
......
# Note: %(here)s is the directory in which the supervisord configuration file was found
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/artisan queue:work --timeout=0
autostart=true
autorestart=true
user=deployer
numprocs=8
redirect_stderr=true
stdout_logfile=%(here)s/worker.log
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment