Melt the coconut oil over medium heat in a small frying pan. Add brown sugar and stir until smooth or close to it.
Turn the heat up to high and add bananas. When the mixture is hot and bubbling, remove pan from heat and pour in the rum, quickly return to heat, tilting a bit to allow the mixture to catch on fire. Continue to shake the pan until the flame dies off. Turn off heat and serve bananas on its own or over vanilla ice cream.