Surrounding the brewery only works for level one and (if you have the upgraded brewery, which needs limestone) two houses (should also be noted that brewery need to consume wheat for them to work; so you need to get a farm or two up before you start building houses).
If you want to support level three houses you either need a level two winery (which gives three happiness), or have the houses next to multiple breweries.
Hope this helps :)