Note also that it's worth helping your neighbors also avoid bear problems, because if a bear gets used to having a tasty dinner on compost, chickens, bees etc. anywhere, that trains him to persistently expect the same at your place.
The electric fence with foil and bacon did not deter them.
I'm collecting materials for a "hoop house" - going to use fence pipe, cover with chain link fence. Locking door.
Try a home made pepper spray or dust once they get a good dose they aren't likely to come back for seconds any to soon