Some people have reported good results using a fly trap set inside an extra tray next to their composter. There are lots of easy ways to get rid of fruit flies naturally.