Not sure if its ok or not to fly near a ship or a boat. But in my case, i just bring my mavic and fly around. Check it out, its a FSO (Floating Storage and Offloading facilities) ready to be towed away to an oil field location.
p/s : It was at a distance of 5km from the controller, i was at...