I'm glad you mentioned this. Obviously a common navy problem. It just takes some creativity. Consider the following:
Chin-up bar--> any railing, platform edge, top of door, overhead bar, etc. (chin-ups, pull-ups, leg raises, etc)
Edge of a bunk/bench-->tricep dips, step ups, knees up...