As with everything in life moderation is the key. In terms of gout, foods rich in a substance known as purines will lead to increased gouty attacks. So your best bet is eat/drink in moderation and try to avoid foods which are high in purines.
Some examples of foods rich this substance:internal organs such as liver and kidney, oily fish such as anchovies, sardines, herring and mackerel.
A moderate amount of purine is found in beef, pork, poultry, fish and seafood, asparagus, cauliflower, spinach, mushrooms, green peas, lentils, dried peas, beans and oatmeal and ALCOHOL. In terms of whether wine is better then beer is beyond my scope of practice and a consult with a dietitian may prove helpful. On the plus side a moderate amount of red wine is clinically proven to decrease the risk of heart disease.
IF your gout is controlled by medication, moderate amounts can be ok. IF you start noticing attacks more often, cut back.