I have a small little trashcan that we use to put food scraps to later take to the word bin/compost area. During that time I can get an infestation of what looks to be like fruit fly larvae of sorts. They coat the bin and start getting outside under the sink. Is there any way to fix this issue either with a different bin or method?
larvae infestations can occur two ways; 1. flies land on the food scraps and lay eggs. 2. eggs were already on the food prior to it going into the scrap bin.
To prevent newly laid eggs you need some sort of cover to keep the flies off so they can't lay eggs. (a mesh of some sort, like fine cheese cloth)
If the eggs were already there, you would need to use something that will kill the hatching larvae. (DE works here)
For us, DE is the normal answer, it is our "first strike" preference for just about every pest type we can encounter on Buzzard's Roost.
If flies are getting into the bin when the lid is on, then the lid is not fitting tight enough, a gasket would help prevent this.
Drosophila melanogaster, the common fruit fly, comes in two varieties, red eyed and white eyed. They reproduce on fruit skins the larvae burrow into the fruit once they hatch.
There are many species of Drosophila but the above are the most common. the order of Diptera includes all flies, most can be controlled with a simple vinegar trap made from a mason jar with lid and a funnel formed from heavy tin foil.
Place the trap near your food scrap bin to capture the largest number of flies.
Having a small container that needs to be taken out frequently helps. A container with a lid and filter helps, I have found it is best to have it on the counter. I have heard some people will put fruit peels in a bag and then the freezer before giving them to worms or composting them, since some fruit peels have the eggs already on them. I do not make compost with citrus peels since they do not make good compost and tend to increase fruit fly problems. I hope you find a system that will reduce you fruit flies and work for your compost.