Skip to content
Snippets Groups Projects
Commit 5de52a6f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

stuff

parent 6aba4037
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \ ...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
locales \ locales \
...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg-dir --with-freetype-dir --with-webp-dir RUN docker-php-ext-configure gd --with-jpeg-dir --with-freetype-dir --with-webp-dir
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached & redis # Install Memcached & redis
RUN pecl install memcached redis \ RUN pecl install memcached redis \
......
...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \ ...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
locales \ locales \
...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg-dir --with-freetype-dir --with-webp-dir RUN docker-php-ext-configure gd --with-jpeg-dir --with-freetype-dir --with-webp-dir
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached # Install Memcached
RUN pecl install memcached redis \ RUN pecl install memcached redis \
......
...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \ ...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
locales \ locales \
...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached & redis # Install Memcached & redis
RUN pecl install memcached redis \ RUN pecl install memcached redis \
......
...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \ ...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
locales \ locales \
...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached & redis # Install Memcached & redis
RUN pecl install memcached redis \ RUN pecl install memcached redis \
......
...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \ ...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
locales \ locales \
...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached & redis # Install Memcached & redis
RUN pecl install memcached redis \ RUN pecl install memcached redis \
......
...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \ ...@@ -14,6 +14,7 @@ RUN apt update && apt install -y --no-install-recommends \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
locales \ locales \
...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -28,7 +29,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached & redis # Install Memcached & redis
RUN pecl install memcached redis \ RUN pecl install memcached redis \
......
...@@ -16,6 +16,7 @@ RUN apt update \ ...@@ -16,6 +16,7 @@ RUN apt update \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
locales \ locales \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
...@@ -30,7 +31,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -30,7 +31,7 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached and redis # Install Memcached and redis
RUN pecl install memcached redis \ RUN pecl install memcached redis \
......
FROM php:8.4.0alpha2-fpm FROM php:8.4-rc-fpm
# Install system requirements # Install system requirements
RUN apt update \ RUN apt update \
...@@ -16,6 +16,7 @@ RUN apt update \ ...@@ -16,6 +16,7 @@ RUN apt update \
libzip-dev \ libzip-dev \
libicu-dev \ libicu-dev \
libfreetype6-dev \ libfreetype6-dev \
libxslt-dev \
libxml2-dev \ libxml2-dev \
locales \ locales \
libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \
...@@ -30,13 +31,11 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \ ...@@ -30,13 +31,11 @@ RUN sed -i -e 's/# en_GB.UTF-8 UTF-8/en_GB.UTF-8 UTF-8/' /etc/locale.gen \
# Install php extensions # Install php extensions
RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp RUN docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp
RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap zip RUN docker-php-ext-install -j$(nproc) gd gettext intl mysqli opcache pdo_mysql pdo_pgsql soap xsl zip
# Install Memcached and redis # Install Memcached and redis
# RUN pecl install memcached redis \ RUN pecl install memcached redis \
# && docker-php-ext-enable memcached redis && docker-php-ext-enable memcached redis
RUN pecl install memcached \
&& docker-php-ext-enable memcached
# Cleanup # Cleanup
RUN docker-php-source delete \ RUN docker-php-source delete \
......
...@@ -8,4 +8,5 @@ location ~ \.php(?:$|/) { ...@@ -8,4 +8,5 @@ location ~ \.php(?:$|/) {
fastcgi_param DOCUMENT_ROOT $site_document_root; fastcgi_param DOCUMENT_ROOT $site_document_root;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_read_timeout 1200;
} }
...@@ -2,3 +2,4 @@ php_admin_flag[log_errors] = on ...@@ -2,3 +2,4 @@ php_admin_flag[log_errors] = on
php_admin_value[error_log] = /var/log/error.log php_admin_value[error_log] = /var/log/error.log
access.log = /dev/null access.log = /dev/null
pm.max_requests = 500 pm.max_requests = 500
request_terminate_timeout = 900
\ No newline at end of file
max_input_vars=10000 max_input_vars=10000
max_execution_time=300 max_execution_time=1200
upload_max_filesize=8M max_file_uploads = 256
post_max_size=9M upload_max_filesize=200M
post_max_size=200M
error_reporting=22519 error_reporting=22519
zend_extension=opcache.so zend_extension=opcache.so
......
...@@ -163,6 +163,15 @@ final class Compile extends Command ...@@ -163,6 +163,15 @@ final class Compile extends Command
), ),
]); ]);
// DB
$creator->addService('db', 'mariadb:latest', [
'container_name' => 'db',
'networks' => ['code-network'],
'environment' => [
'MARIADB_RANDOM_ROOT_PASSWORD' => true,
],
]);
$mounts = [ $mounts = [
"{$compiledPath}/nginx.conf" => 'conf.d/default.conf', "{$compiledPath}/nginx.conf" => 'conf.d/default.conf',
"{$compiledPath}/nginx-sites.conf" => 'sites.conf', "{$compiledPath}/nginx-sites.conf" => 'sites.conf',
...@@ -195,6 +204,7 @@ final class Compile extends Command ...@@ -195,6 +204,7 @@ final class Compile extends Command
'MYSQL_HOST' => 'host.docker.internal', 'MYSQL_HOST' => 'host.docker.internal',
], ],
'networks' => ['code-network'], 'networks' => ['code-network'],
'depends_on' => ['db'],
]); ]);
$creator->addServiceVolume( $creator->addServiceVolume(
...@@ -246,9 +256,10 @@ final class Compile extends Command ...@@ -246,9 +256,10 @@ final class Compile extends Command
'server_name _', 'server_name _',
'proxy_read_timeout' => 300, 'proxy_read_timeout 1200',
'proxy_connect_timeout' => 300, 'proxy_connect_timeout 1200',
'proxy_send_timeout' => 300, 'proxy_send_timeout 1200',
'send_timeout 1200',
'access_log off', 'access_log off',
'error_log off', 'error_log off',
...@@ -283,7 +294,7 @@ final class Compile extends Command ...@@ -283,7 +294,7 @@ final class Compile extends Command
]); ]);
$creator->addServer([ $creator->addServer([
'listen ' . $sslPort . ' default_server ssl', 'listen ' . $sslPort . ' default_server ssl http2',
'client_max_body_size 64M', 'client_max_body_size 64M',
'set $fastcgi_backend ' . $index . '_backend', 'set $fastcgi_backend ' . $index . '_backend',
......
...@@ -9,7 +9,7 @@ final class NginxConfiguration extends ConfigurationCreator ...@@ -9,7 +9,7 @@ final class NginxConfiguration extends ConfigurationCreator
public function addLocation(string $location, array $config, string $modifier = '^~') public function addLocation(string $location, array $config, string $modifier = '^~')
{ {
$this->addConfiguration('location', [ $this->addConfiguration('location', [
'location' => $location = '/' . ltrim($location, '/'), 'location' => '/' . ltrim($location, '/'),
'modifier' => $modifier, 'modifier' => $modifier,
'config' => $config, 'config' => $config,
]); ]);
...@@ -17,6 +17,8 @@ final class NginxConfiguration extends ConfigurationCreator ...@@ -17,6 +17,8 @@ final class NginxConfiguration extends ConfigurationCreator
public function addServer(array $config) public function addServer(array $config)
{ {
$this->addConfiguration('server', [ $this->addConfiguration('server', [
'config' => $config, 'config' => $config,
]); ]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment