For power you could use a small nuclear reactor, just like submarines and aircraft carriers. I've always thought it would be a fun exercise to take a decommissioned nuclear submarine and turn it into a floating datacenter.
When nuclear vessels are decommissioned they remove the reactors. Operating a naval reactor requires a constant watch by multiple highly-paid experts. They are not cost effective for electrical power generation.