I think if you use your fence, you risk rotting your fence prematurely. I recommend keeping it at least two feet from your fence. I have 3 compost bins - so I have a bit of experience. Just remember, compost is vegan (except eggshells) and you’ll be fine. If you ever get fruit flies, just add newspaper shreds and you’re all set.