feat(frankenphp): prepare caddyfile for prod image
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit

This commit is contained in:
2025-10-08 15:03:52 +02:00
parent 21cef8a495
commit 4ea8d73125
4 changed files with 45 additions and 19 deletions

View File

@@ -13,24 +13,8 @@
frankenphp { frankenphp {
php_ini { php_ini {
{$PHPINI_EXTRA_CONFIG} {$PHPINI_EXTRA_CONFIG}
realpath_cache_ttl 600
opcache.enable_cli 1
opcache.memory_consumption 512
opcache.max_accelerated_files 20000
opcache.preload /app/config/preload.php
opcache.preload_user www-data
apc.enable_cli 1
apc.enable 1
{$PHPINI_EXTRA_CONFIG}
} }
{$FRANKENPHP_CONFIG} {$FRANKENPHP_CONFIG}
file /app/public/index.php
watch
name hydra-sql-worker
{$FRANKENPHP_WORKER_CONFIG}
}
{$FRANKENPHP_CONFIG}
} }
} }

View File

@@ -0,0 +1,22 @@
{
frankenphp {
php_ini {
realpath_cache_size 4096K
realpath_cache_ttl 600
opcache.enable_cli 1
opcache.memory_consumption 512
opcache.max_accelerated_files 20000
opcache.preload /app/config/preload.php
opcache.preload_user www-data
opcache.validate_timestamps 0
opcache.revalidate_freq 0
apc.enable_cli 1
apc.enable 1
}
worker {
file /app/public/index.php
name hydra-sql-worker
watch
}
}
}

View File

@@ -1,8 +1,27 @@
{ {
frankenphp { frankenphp {
php_ini { php_ini {
realpath_cache_size 4096K
realpath_cache_ttl 600
opcache.enable_cli 1
opcache.memory_consumption 512
opcache.max_accelerated_files 20000
opcache.preload /app/config/preload.php
opcache.preload_user www-data
opcache.validate_timestamps 0 opcache.validate_timestamps 0
opcache.revalidate_freq 0 opcache.revalidate_freq 0
apc.enable_cli 1
apc.enable 1
zend.exception_ignore_args On
zend.exception_string_param_max_len 0
error_reporting E_ALL & ~E_DEPRECATED
display_errors Off
display_startup_errors Off
zend.assertions -1
}
worker {
file /app/public/index.php
name hydra-sql-worker
} }
} }
} }

View File

@@ -18,7 +18,7 @@ ARG APP_ENV=prod \
APP_LOCALES="fr,en" \ APP_LOCALES="fr,en" \
BASE_PATH="" BASE_PATH=""
COPY ./misc/files/Caddyfile /etc/frankenphp/Caddyfile COPY ./misc/files/Caddyfile /etc/caddy/Caddyfile
WORKDIR /app WORKDIR /app
@@ -47,8 +47,8 @@ ENV APP_ENV=prod \
BASE_PATH="" \ BASE_PATH="" \
VERSION=${VERSION} VERSION=${VERSION}
COPY ./misc/files/Caddyfile /etc/frankenphp/Caddyfile COPY ./misc/files/Caddyfile /etc/caddy/Caddyfile
COPY ./misc/files/frankenphp.caddyfile-prod /etc/frankenphp/Caddyfile.d/frankenphp.caddyfile COPY ./misc/files/frankenphp.caddyfile-prod /etc/caddy/Caddyfile.d/frankenphp.caddyfile
WORKDIR /app WORKDIR /app
@@ -60,4 +60,5 @@ RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini \
pdo_mysql \ pdo_mysql \
opcache \ opcache \
apcu \ apcu \
intl \
redis redis