Docker - can't connect to php7.0-fpm.sock In nginx configuration try use upstream fastcgi_backend { server php:9000; }