My OH suffered with it in his foot and found certain things like red wine (although he's by no means a drinker) offal, such as kidney, liver and black pudding, marmite which contains yeast, triggered episodes.
During the pandemic, I was making my own bread and we couldn't understand why he was getting gout so often. It wasn't until we realised I was using yeast in it and it was causing the gout. We went back to bought bread and it stopped.
Now he only gets it occasionally but when he does, he drinks lots of water and elevates his leg. It helps to reduce the uric acid crystals in the joint.