Even though we have a small garden, we have found space in it for a composter, into which we put all uncooked vegetable scraps, and, being English, used tea bags.
So far, the insects seem to like it inside the composter, but it doesn’t make a nuisance, even though I sit in the garden only 1m away from it.
My composter
We carry the vegetable waste out to the composter in an old plastic ice-cream box.