I'd make a 'doghouse' for a compressor if I had a shop... basically a small concrete pad connected to the building. On the concrete a rubber mat would minimize any vibes and resulting noise, and the 'garage' side would be sealed as the roof would be too.
At least the 'away from garage' side would be assembled with louvered slats (think siding with that's angled out so it lets air circulate but keeps air out) line this with screen on the inside to keep bugs out. Perhaps all three non garage facing sides would be like this if it's in arizona or another hot place.
It'd be setup as Compressor/tank with a shutoff valve, hard line through insulated wall and there another shutoff valve, drier/filter and psi gauge, etc.