Dragon fruit plants grow best in well-drained, nutrient-rich soil. They generally prefer full sun exposure and temperatures between 20°C and 30°C (68°F and 86°F).