Having been to a number of commercial harbours I can assure you that a lot of them are not in the middle of nowhere but in the centre of some of the world's largest cities. Singapore, Hong Kong, Tainjin, Busan, Yokohama... Even Melbourne (yes, it is a major port and the docks are in the centre of the city: https://www.google.com.au/maps/place/DP+World+Melbourne/@-37...).
You might be in a very different part of the city but there are often cheap commuter buses or trains to get out because the workers have to get in.