Progress
This commit is contained in:
1 parent
6ebb259757
commit
085ab7e9b8
6 files changed
+96
-8
No files matched your search
+5
-2
@@ -1,9 +1,12 @@
|
||||
# Use PHP with Apache as the base image
|
||||
FROM php:8.4-apache
|
||||
|
||||
# Application root (default keeps the original /var/www/html layout)
|
||||
ENV APP_ROOT="/var/www/html"
|
||||
|
||||
# Environment
|
||||
ENV TZ="Europe/Prague" \
|
||||
APACHE_DOCUMENT_ROOT="/var/www/html/public" \
|
||||
APACHE_DOCUMENT_ROOT="${APP_ROOT}/public" \
|
||||
PHP_INI_FILE="$PHP_INI_DIR/php.ini" \
|
||||
PHP_OPCACHE_VALIDATE_TIMESTAMPS="1" \
|
||||
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
|
||||
@@ -114,7 +117,7 @@ COPY ./supervisor/conf.d/laravel-queues.conf /etc/supervisor/conf.d/laravel-queu
|
||||
|
||||
# Setup Crone
|
||||
RUN mkdir -p /var/log/cron && \
|
||||
echo "* * * * * www-data cd /var/www/html && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1" >> /etc/crontab
|
||||
echo "* * * * * www-data cd ${APP_ROOT} && /usr/local/bin/php artisan schedule:run >> /dev/null 2>&1" >> /etc/crontab
|
||||
|
||||
# Install composer # bun
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
[program:queue-default]
|
||||
command=/usr/local/bin/php /var/www/html/artisan queue:work --sleep=3 --tries=3 --queue=default,importstatistics
|
||||
command=/usr/local/bin/php %(ENV_APP_ROOT)s/artisan queue:work --sleep=3 --tries=3 --queue=default,importstatistics
|
||||
user=www-data
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/var/log/supervisor/queue-default.log
|
||||
|
||||
[program:queue-statistics]
|
||||
command=/usr/local/bin/php /var/www/html/artisan queue:work --sleep=5 --tries=3 --queue=statistics
|
||||
command=/usr/local/bin/php %(ENV_APP_ROOT)s/artisan queue:work --sleep=5 --tries=3 --queue=statistics
|
||||
user=www-data
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/var/log/supervisor/queue-statistics.log
|
||||
|
||||
[program:queue-detections]
|
||||
command=/usr/local/bin/php /var/www/html/artisan queue:work --sleep=3 --tries=3 --queue=detections
|
||||
command=/usr/local/bin/php %(ENV_APP_ROOT)s/artisan queue:work --sleep=3 --tries=3 --queue=detections
|
||||
user=www-data
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
||||
Reference in new issue
Block a user