I had similar problem, in my configuration I put 9001 as output, and the streams messed up,
I re-configured nginx following symfony's documentation for setup simple server and everything worked, and in docker as well I redirected 9000 port to 8000, and left 9001 only for php-fpm socket