On a twenty four hour ferry fridge on inverter would flatten your batteries.
Fill your freezer compartment with food or some dummy ice packs turn up high on gas or hook up a day before then turn off gas and fridge on ferry.
We do this on the Portsmouth Santander ferry no problem
BTW no problem with gas fridge while on the road