Running services on different ports in development environment and production environment
This should be fine.  It's something you may even have to do if ports are already in use on localhost.  Even development languages like .net core are now supporting different environments that can be used to configure the different ports.

Example: 1433 is the standard sql server port.  If I wanted to test a local sql server container, but did not want to stop my locally installed sql server, I could run it on another port (e.g. 1431).