Browse Source

docker整備

develop
sosuke.iwabuchi 2 years ago
parent
commit
e5ce672e16
2 changed files with 37 additions and 3 deletions
  1. +0
    -3
      docker/8.2/php.ini
  2. +37
    -0
      docker/8.2/supervisord.conf

+ 0
- 3
docker/8.2/php.ini View File

@@ -5,6 +5,3 @@ variables_order = EGPCS


[opcache] [opcache]
opcache.enable_cli=1 opcache.enable_cli=1

[xdebug]
xdebug.start_with_request=yes

+ 37
- 0
docker/8.2/supervisord.conf View File

@@ -12,3 +12,40 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0


[program:laravel-email-worker]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /var/www/html/artisan queue:work --queue=email --max-time=60
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=sail
numprocs=1
redirect_stderr=true
stopwaitsecs=100
stdout_logfile=/var/www/html/storage/logs/laravel-email-worker.log
stderr_logfile=/var/www/html/storage/logs/laravel-email-worker.error.log
stdout_logfile_maxbytes=1000000
stderr_logfile_maxbytes=1000000
stdout_logfile_backups=3
stderr_logfile_backups=3

[program:laravel-sms-worker]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /var/www/html/artisan queue:work --queue=sms --max-time=60
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=sail
numprocs=1
redirect_stderr=true
stopwaitsecs=100
stdout_logfile=/var/www/html/storage/logs/laravel-sms-worker.log
stderr_logfile=/var/www/html/storage/logs/laravel-sms-worker.error.log
stdout_logfile_maxbytes=1000000
stderr_logfile_maxbytes=1000000
stdout_logfile_backups=3
stderr_logfile_backups=3

Loading…
Cancel
Save