If you just woke up and are in pain, you either a) injured yourself while asleep (unlikely) or you're right, it's gout, whohoo!
Most likely a dock might want to do some blood tests and check for your purine levels, if they're high, you've got gout! lol Temporary relief is usually with NSAIDS (very very bad on the stomach long term). Long term relief with something like allopurinol (not too bad, also anti-kidney stone medicine, good stuff!). If you've been eating a lot of meat, shrimp, organ meats (kidney, liver, etc) lately, those are typically high in purines and cause gout to be worse. Enjoy!