I hope those Macs have been ruggedized. Salt water (and salt in the air) is very corrosive - those computers won’t last very long in this environment. Conformal coating on the boards would be a start, then you have the constant vibration and motion to deal with - there is a reason why these ships use Ruggedized Computers.