From a9e3ace71799cdbb0d1d11b153866dce2cdbf040 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Tue, 3 Feb 2026 08:18:23 +0100 Subject: [PATCH 1/4] Fix oo cache --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 85d492e..21f5c2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,7 +64,7 @@ RUN docker-php-ext-install \ soap \ gd -RUN docker-php-ext-enable imagick +RUN docker-php-ext-enable imagick opcache # PHP RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_FILE" && \ From 7461f0a25e9e4b6f8f43971db50988319f6b312e Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Tue, 3 Feb 2026 09:22:25 +0100 Subject: [PATCH 2/4] Fixes --- apache/Dockerfile | 7 ++++++- fmp-alpine/Dockerfile | 29 ++++++++++++++--------------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/apache/Dockerfile b/apache/Dockerfile index 21f5c2b..4f7b858 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -52,6 +52,9 @@ RUN --mount=type=cache,target=/var/cache/apt \ RUN a2enmod rewrite # Install PHP extensions +RUN docker-php-ext-configure \ + opcache --enable-opcache + RUN docker-php-ext-install \ pdo_mysql \ pgsql \ @@ -64,7 +67,9 @@ RUN docker-php-ext-install \ soap \ gd -RUN docker-php-ext-enable imagick opcache +RUN docker-php-ext-enable \ + imagick \ + opcache # PHP RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_FILE" && \ diff --git a/fmp-alpine/Dockerfile b/fmp-alpine/Dockerfile index 402c1cb..87a2384 100644 --- a/fmp-alpine/Dockerfile +++ b/fmp-alpine/Dockerfile @@ -38,21 +38,20 @@ RUN apk add --no-cache --virtual .build-deps \ libxml2-dev \ linux-headers -RUN docker-php-ext-configure gd \ - --with-freetype \ - --with-jpeg \ - && docker-php-ext-install -j$(nproc) \ - pdo_mysql \ - pdo_pgsql \ - pgsql \ - zip \ - bcmath \ - soap \ - gd \ - intl \ - opcache \ - sockets \ - pcntl +RUN docker-php-ext-configure \ + gd --with-freetype --with-jpeg \ + && docker-php-ext-install -j$(nproc) \ + pdo_mysql \ + pdo_pgsql \ + pgsql \ + zip \ + bcmath \ + soap \ + gd \ + intl \ + opcache \ + sockets \ + pcntl RUN pecl install imagick \ && docker-php-ext-enable imagick From 16bd69589061cdc846897e2938e2849a9d163a9a Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Tue, 3 Feb 2026 09:24:57 +0100 Subject: [PATCH 3/4] Small Fixes --- apache/Dockerfile | 4 ++-- apache/supervisor/conf.d/laravel-queues.conf | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apache/Dockerfile b/apache/Dockerfile index 4f7b858..3e2ce5e 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -79,7 +79,7 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_FILE" && \ printf '[Date]\ndate.timezone="%s"\n', $TZ > "$PHP_INI_DIR/conf.d/tzone.ini" #OPCACHE -RUN echo '\n\ +RUN echo "\n\ [opcache]\n\ opcache.enable=1\n\ opcache.revalidate_freq=0\n\ @@ -88,7 +88,7 @@ opcache.max_accelerated_files=${PHP_OPCACHE_MAX_ACCELERATED_FILES}\n\ opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}\n\ opcache.max_wasted_percentage=${PHP_OPCACHE_MAX_WASTED_PERCENTAGE}\n\ opcache.interned_strings_buffer=16\n\ -opcache.fast_shutdown=1' >> "$PHP_INI_DIR/conf.d/opcache.ini" +opcache.fast_shutdown=1" >> "$PHP_INI_DIR/conf.d/opcache.ini" #SUPERVISORD RUN mkdir -p /var/log/supervisor diff --git a/apache/supervisor/conf.d/laravel-queues.conf b/apache/supervisor/conf.d/laravel-queues.conf index ab09892..31c7045 100644 --- a/apache/supervisor/conf.d/laravel-queues.conf +++ b/apache/supervisor/conf.d/laravel-queues.conf @@ -1,19 +1,19 @@ [program:queue-default] -command=/usr/local/bin/php /var/www/html/artisan queue:work --queue=default,importstatistics +command=/usr/local/bin/php /var/www/html/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 --queue=statistics +command=/usr/local/bin/php /var/www/html/artisan queue:work --sleep=3 --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 --queue=detections +command=/usr/local/bin/php /var/www/html/artisan queue:work --sleep=3 --tries=3 --queue=detections user=www-data autostart=true autorestart=true From 24381ef43f5099233208b6c1258a6a97315c6040 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Tue, 3 Feb 2026 09:25:07 +0100 Subject: [PATCH 4/4] Update queue-statistics command sleep duration to 5 seconds --- apache/supervisor/conf.d/laravel-queues.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache/supervisor/conf.d/laravel-queues.conf b/apache/supervisor/conf.d/laravel-queues.conf index 31c7045..74d99b5 100644 --- a/apache/supervisor/conf.d/laravel-queues.conf +++ b/apache/supervisor/conf.d/laravel-queues.conf @@ -6,7 +6,7 @@ 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=3 --tries=3 --queue=statistics +command=/usr/local/bin/php /var/www/html/artisan queue:work --sleep=5 --tries=3 --queue=statistics user=www-data autostart=true autorestart=true