This starts on a cruise liner whose captain (I think played by George Kennedy) for some reason was disillusioned with his lot in life. One night, something crashes into and sinks the liner; only the captain and a few passengers make it to a lifeboat.
Adrift in the ocean, the survivors come across a ship and board it, surprised to find no crew or passengers. If memory serves, they found a film or some paraphernalia that reveals that this ship was built in Germany during the Third Reich and numerous atrocities were committed onboard.
Various objects on the ship animate and attack the passengers, killing them one by one, while the captain starts to descend into megalomania, declaring himself the new captain of this ship.
This was too old to be Ghost Ship (2002).