add docker config

This commit is contained in:
2021-04-17 21:46:00 +02:00
parent 17ffc11a72
commit fe90d3d32c
6 changed files with 161 additions and 0 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;
}
}