I used to put my vegetable & fruit scraps, coffee grounds (filters too), egg shells etc in a plastic pail with a lid. Once a week, I buried the contents in my garden. I never noticed an odor, I assume because the pail was sealed. Now I have a different house and my garden is part of a community garden so I don’t do this anymore.