Start with a visit to your veterinarian. There are a number of treatments that may help:
Anti-inflammatory medication
pain medication
omega-3 fatty acids
glucosamine/chondroitin products
acupuncture
laser therapy
Any of these may help, or none of them. Get professional guidance that is specific to your dog.