Helpfully, the crew quarters has no upkeep though, so you can keep spamming it wherever you like.
I tended to make two type of ports: Dedicated Shipyards or Border Anchorages. The Border stations use the Crew Quarters, Observatory (for the Sensor Range boost), and (semi-erronously) the engineering bay because I thought the two were the same type of bonus. Although having the increased repair speed would still be worth while.