This repository has been archived on 2025-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
LaravelDockerPublisher/docker/supervisord.conf

31 lines
852 B
Plaintext
Raw Normal View History

2025-05-29 11:23:06 +08:00
[supervisord]
nodaemon=true
2025-06-02 10:17:50 +08:00
logfile=/var/www/logs/supervisord.log ; 設定 log 儲存位置
pidfile=/var/www/logs/supervisord.pid ; 設定 pid 儲存位置
2025-05-29 11:23:06 +08:00
[program:php-fpm]
command=docker-php-entrypoint php-fpm
autostart=true
autorestart=true
priority=1
2025-06-02 10:17:50 +08:00
stdout_logfile=/var/www/logs/php-fpm.log
stderr_logfile=/var/www/logs/php-fpm.err.log
2025-05-29 11:23:06 +08:00
[program:queue-worker]
directory=/var/www/html
2025-05-29 16:47:34 +08:00
command=php artisan queue:work --daemon --timeout=3600 --tries=1 --queue=default
2025-05-29 11:23:06 +08:00
autostart=true
autorestart=true
priority=2
2025-06-02 10:17:50 +08:00
stdout_logfile=/var/www/logs/queue.log
stderr_logfile=/var/www/logs/queue_error.log
2025-05-29 11:23:06 +08:00
2025-06-02 10:17:50 +08:00
[program:scheduler]
directory=/var/www/html
command=sh -c "while true; do php artisan schedule:run; sleep 60; done"
2025-05-29 11:23:06 +08:00
autostart=true
autorestart=true
2025-06-02 10:17:50 +08:00
priority=3
stdout_logfile=/var/www/logs/schedule.log
stderr_logfile=/var/www/logs/schedule_error.log