My feeling is that the harbour is the water, the dock is the wooden structure where the ships tie up to load and unload, and the port is the town, buildings and facilities surrounding them. There are likely other opinions.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.