[header] How to get rats and mice out of compost [title] Review what you're adding to the compost. [step] Some foods may attract rodents more than others, such as bread and baked items. Avoid putting these in, in particular cooked and processed foods. 
In addition, do not add meat or fish waste to the compost. Also, keep dairy products, bones, , fatty foods, and pet manures out of the heap.