feat(frankenphp): prepare caddyfile for prod image
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
Some checks failed
Cadoles/hydra-sql/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
@@ -13,24 +13,8 @@
|
||||
frankenphp {
|
||||
php_ini {
|
||||
{$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}
|
||||
file /app/public/index.php
|
||||
watch
|
||||
name hydra-sql-worker
|
||||
{$FRANKENPHP_WORKER_CONFIG}
|
||||
}
|
||||
{$FRANKENPHP_CONFIG}
|
||||
}
|
||||
}
|
||||
|
||||
|
22
misc/files/frankenphp.caddyfile-dev
Normal file
22
misc/files/frankenphp.caddyfile-dev
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
@@ -1,8 +1,27 @@
|
||||
{
|
||||
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
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
@@ -18,7 +18,7 @@ ARG APP_ENV=prod \
|
||||
APP_LOCALES="fr,en" \
|
||||
BASE_PATH=""
|
||||
|
||||
COPY ./misc/files/Caddyfile /etc/frankenphp/Caddyfile
|
||||
COPY ./misc/files/Caddyfile /etc/caddy/Caddyfile
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -47,8 +47,8 @@ ENV APP_ENV=prod \
|
||||
BASE_PATH="" \
|
||||
VERSION=${VERSION}
|
||||
|
||||
COPY ./misc/files/Caddyfile /etc/frankenphp/Caddyfile
|
||||
COPY ./misc/files/frankenphp.caddyfile-prod /etc/frankenphp/Caddyfile.d/frankenphp.caddyfile
|
||||
COPY ./misc/files/Caddyfile /etc/caddy/Caddyfile
|
||||
COPY ./misc/files/frankenphp.caddyfile-prod /etc/caddy/Caddyfile.d/frankenphp.caddyfile
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -60,4 +60,5 @@ RUN cp $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini \
|
||||
pdo_mysql \
|
||||
opcache \
|
||||
apcu \
|
||||
intl \
|
||||
redis
|
Reference in New Issue
Block a user