Dragon fruit needs full sun, so choose a sunny area in your garden or a sunny windowsill that gets at least six hours of sunlight a day. For the soil, choose potting soil that is well-draining (dragon fruits are sensitive to “wet feet,” or consistently wet roots) and rich in organic matter.