Suffered from gout for 10+ years now with 2-3 bad attacks a year plus other annoying joint pain for about 6 months of the year so you have my sympathy. I have it in the ankle, big toe and once over Xmas I had it in both knees at the same time which was interesting!
There is lots written about it and what you should/shouldn’t do but it can be a trial and error situation.
Personally I find that Goji berries, black cherries, cherry juice, water (lots) and celery all help regulate the uric acid levels. Low fat dairy food is fine but I tend to avoid beer, wine (all colours), shell fish, offal, red meat, spinach, broccoli, mushrooms, pulses such as lentils, chick peas etc and beans.
Look for foods that are low in Purines as this can cause the imbalance in Uric Acid levels.
Rest your foot and keep it elevated, nothing like a bit of rest to help with the swelling.
Good luck.