I recommend a full medical kit containing all the items you might need for offshore cruising. Then it all should be stored in a dry location, at least relevantly climate controlled.
You didn't say if you'd likely have guests, but if so, they'll also have medications and medical issues.
As stated, all medications in original packaging. Also, if you get a kit with some medications for the boat and emergencies, you now have his, hers, guests, and boat's medications and you need to keep inventory and usage records like a doctor's office might do. You should be able to provide a listing of all medications on board.
-Keep medicines in their original, labeled containers. Ensure that they are clearly labeled with your full passport name, doctor’s name, generic and brand name, and exact dosage.
-Bring copies of all prescriptions, including the generic names for medicines.
-Leave a copy of your prescriptions at home with a friend or relative in case you lose your copy or need an emergency refill.
-Pack a note on letterhead stationery from the prescribing doctor (preferably translated into the language understood at your destination) for controlled substances, and injectable medicines, such as EpiPens and insulin.
Research any destinations as some US drugs are not legal elsewhere. Sudafed, Codeine, Tramadol, Benadryl, Adderall, Ritalin, and Ambien are a few drugs that can be problematic. Countries like Japan have very rigid prohibitions.
I would, as much as possible, not carry any of the meds on shore or on planes. Keep them secured and managed on your boat.