baseline
This commit is contained in:
BIN
docker/.DS_Store
vendored
Normal file
BIN
docker/.DS_Store
vendored
Normal file
Binary file not shown.
29
docker/nginx/default.conf
Normal file
29
docker/nginx/default.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /var/www/web;
|
||||
index index.php;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_pass php:9000;
|
||||
}
|
||||
|
||||
location ~* \.mjs$ {
|
||||
default_type application/javascript;
|
||||
try_files $uri =404;
|
||||
expires 30d;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location ~* \.(css|js|png|jpg|jpeg|gif|svg|ico)$ {
|
||||
expires 30d;
|
||||
access_log off;
|
||||
}
|
||||
}
|
||||
22
docker/php/Dockerfile
Normal file
22
docker/php/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM php:8.5-fpm
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
unzip \
|
||||
libmemcached-dev \
|
||||
zlib1g-dev \
|
||||
libssl-dev \
|
||||
libjpeg-dev \
|
||||
libpng-dev \
|
||||
libwebp-dev \
|
||||
&& pecl install memcached \
|
||||
&& docker-php-ext-enable memcached \
|
||||
&& docker-php-ext-configure gd --with-jpeg --with-webp \
|
||||
&& docker-php-ext-install pdo_mysql mysqli gd \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
COPY docker/php/php.ini /usr/local/etc/php/conf.d/zzz-minty-dev.ini
|
||||
|
||||
WORKDIR /var/www
|
||||
4
docker/php/php.ini
Normal file
4
docker/php/php.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
display_errors=1
|
||||
display_startup_errors=1
|
||||
error_reporting=E_ALL
|
||||
memory_limit=256M
|
||||
Reference in New Issue
Block a user