I think the others are right, unless it's a secondary door that would only be opened infrequently, I wouldn't do it.
If space is an issue, and I think it's best way anyway, have just a single community nesting box, you don't need several nesting boxes. Mine is rated for up to 20 hens and I have 12.
It's only 24 inches wide. Also do yourself a favor and build or buy, a roll out nesting box. I love mine, it came from HenGear.com. No straw to mess with, and your eggs will be very clean. You can mount it so the eggs come out the front in the coop, or through the wall outside the coop.
If you look closely, there's two hens in there.
I free range my chickens and I'm always worried my chickens are going to set up a secret nest and hide their eggs from me, so my goal is to make their nesting box as attractive to them as possible, so they don't set up their own hidden one.
Haha, I sound like Darth Vader, looking for the secret rebel base! (my 15 year old wanted to see Star Wars last weekend)
They want privacy, darkness, and quiet for their nesting box. I would be afraid a nesting box in a swinging door would make the nesting box less attractive to them.