Upgrading from 4.0.0RC2 to 4.0.4 with docker gives me a 502 error

After the upgrade and pull is complete, I set the port number in docker-compose.yml to the same as the one specified in nginx, though,
I get a 502 error.

After downgrading to rc2, http requests are returned without problems.

Is there any additional configuration when upgrading to 4.0.2 with docker?
Can someone please let me know?