So dragon fruit needs full sun.Choose a sunny spot in your garden or a sunny windowsill that receives at least six hours of sunlight per day. For the soil, choose potting soil that drains well (dragon fruit is sensitive to "wet feet" or constantly wet roots) and rich in organic matter.