If you want to buying a condominium with a Thai spouse you need to read this article.

When a condominium unit in Thailand is acquired by a Thai national married to a foreigner the unit will automatically be considered foreign owned under the Thailand Condominium Act, unless the acquisition of the condominium unit is in accordance with the procedure for the acquisition of land by a Thai national married to a foreigner. Only in this case the condominium unit will be considered Thai owned and will fall within the Thai ownership side of the condominium. This will also mean that in such case under Thai matrimonial property laws the unit will be considered a personal (non-marital) asset of the Thai spouse and not a jointly owned marital asset of husband and wife.

 

You can also look the Retirement in Thailand.