The Access to Insight website has a number of related translations and essays;
Suttas
- How to ensure that you'll be with your spouse in future lives: AN 4.55
- Spouses' duties to each other: DN 31
Essays
- "A Single Mind" (Fuang)
- A Happy Married Life: A Buddhist Perspective (Dhammananda)
- Nothing Higher to Live For (Nyanasobhano)
- Buddhism and Sex (Walshe)
It all seems to boil down to "be ethical". Although on the other hand ideally one would not get married, but would take up celibacy and reject family life. For example in the Cūḷahatthipadopama Sutta the Buddha says:
so tena saddhāpaṭilābhena samannāgato iti paṭisañcikkhati — ‘sambādho gharāvāso rajopatho, abbhokāso pabbajjā. nayidaṃ sukaraṃ agāraṃ ajjhāvasatā ekantaparipuṇṇaṃ ekantaparisuddhaṃ saṅkhalikhitaṃ brahmacariyaṃ carituṃ. [MN 27; i.179
And having become possessed of faith [from hearing the dhamma] he thinks: household life is crowed and dirty; having gone forth one is wide open. It is not easy to live the religious life, so perfect and pure like a polished shell, while living in a home.
In short the best way to do marriage, is not to do it all, but to dedicate yourself to practising the Dharma.
This question is similar to a previous one: