Plan to keep the boat in Turkey, a non-Shengen country. The sailing is great, and a 3-month visa costs 20 euros (there is also a multiple entry visa, but I don't know about those). You can shuttle back and forth between Turkey and a Shengen country (e.g. Greece) every 3 months.
You really want to be in the Med, not the Baltic.