This is how we used to do it and it worked great. Two top load side-by-side cubic meter bins made from juniper and 1/2” hardware cloth, with side doors for unloading. Used to get wheelbarrows of produce scraps from a local grocery. Only problem in the city was rats. It didn’t smell like sewer, usually tended towards piss (nitrogen), and it made great compost.
We’ve avoided it since moving because we don’t want to attract rodents, but maybe there’s a way.. fortunately our scraps can go in the yard waste bin and get composted by the municipality.
Have tried bokashi but it smelled like sewer and I gave up.