If you're interested in composting indoors but are worried about the smell and possible insect invasion, there are multiple ways to reuse food waste so that you are destined to find the best approach. One way to keep fruit flies away is by storing scraps in a plastic bag in the freezer until it's ready to go into the compost pile.