The courtyard gate should be deliberately built in the west to avoid the taboo of "rushing" the gate into the main house. It can be seen that your yard is small and not deep enough. If the courtyard is more than 8 meters deep, if the courtyard gate is modified, a shadow wall should be built between it and the main entrance, which is a key to the layout of old houses in the past.
Although the layout of the main house is not taboo, the door of the side yard can not be regarded as a good feng shui in the traditional saying. If the surrounding environment permits and is limited by the narrow courtyard, some will open doors facing east or west (there should be buildings in front).