A compound is an enclosed area such as a prison or factory.
The workers waited outside the compound for the gates of the factory to open.
Example picture