adapt dev local env

This commit is contained in:
2021-02-18 13:55:13 +01:00
parent beeeac2ac8
commit a628c110a9
9 changed files with 68 additions and 226 deletions

View File

@@ -0,0 +1,26 @@
server {
listen 80 default;
client_max_body_size 108M;
access_log /var/log/nginx/app.access.log;
root /var/www/app/public;
index index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/app_php_errors.log";
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
include fastcgi_params;
}
}

View File

@@ -0,0 +1,12 @@
FROM phpdockerio/php72-fpm:latest
WORKDIR "/var/www/app"
# Install selected extensions and other stuff
RUN apt-get update \
&& apt-get -y --no-install-recommends install php7.2-mysql \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
# Install git
RUN apt-get update \
&& apt-get -y install git \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

View File

@@ -0,0 +1,2 @@
upload_max_filesize = 100M
post_max_size = 108M