server { listen 80; # this path MUST be exactly as docker-compose.fpm.volumes, # even if it doesn't exist in this dock. root /var/www/html/public; client_max_body_size 16M; location / { try_files $uri /index.php$is_args$args; } location ~ ^/.+\.php(/|$) { fastcgi_pass php:9000; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }