Welcome at JA.
It looks from your details that you are suffering from BUNION.
Generally this occur due to wearing shoes with smaller toe box.
The treatment of this consist of following-
-Wearing shoes with large toe box.
-Use of tapes & pads at the affected area.This leads to reduction in pressure & decrease of swelling.
-Use of anti inflammatory drugs like advil/aleeve.
-In advanced stage surgery is needed where your surgeon correct the deformity by correcting the alignment.
Hope this will help you.
With best wishes.