How to make the ocean modifier to deform an object, but don't move it?
It is deforming it, but the result is probably not matching the scale of your object. Try to reduce the Size parameter and maybe also the Scale parameter of the Ocean modifier.