Ah ok.
You don't seem to be a DS9 fan (you implied it didn't "have a heart"), but your pitch reminds me of the Dominion War arc, where human dynamics during a time of war was pretty well staged. A very specific episode even comes to mind ("The Siege of AR-448"), also set on a moon / planetoid...