Unfortunately, every planet uses exactly same military production ratios based on the empire-wide slider settings. At worlds where you don't want to produce military ships, build constructors for building the first few "free" SBs. Trade, production, and defense starbase modules will all help your economy and ability to withstand attack.