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/public; location / { try_files $uri /index.php$is_args$args; } location ~ ^/.+\.php(/|$) { fastcgi_pass php:9000; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }