If there are doors that can close and lock then it’s only accessible to qualified persons. Traffic signal cabinets are the same.
I have installed many similar cabinets, but all my wiring was NEMA 1 in a 3R cabinet
Code compliant? Probably. Add a few signs, and a lock