That's fine if you have the space to do that. ;-) I don't. I just make sure that nothing desirable to the pets goes into the trash. It's actually quite simple, and it keeps me from having a smelly trash can.
Our city does the large dumpster thing. They have those big arms that come out of the side of the trash truck to pick up the dumpsters that the city distributes to each household.
Those trash cans are _way_ too large for dogs to be a problem. ;-)
But, thanks anyhoo.