Arrangement of ship-based loading or unloading equipment for cargo or passengers of cranes of gantry type