Go along to your local builders' merchants (not just a DIY store) and see what they have in the way of treated wood.
The usual wood they have is 'Tanalised' which has been pressure treated already, as mentioned by Clanad.
Even tanalising doesn't make the wood last forever. In practical terms you should get 15-20 years left open to the elements.
You don't say how large you want to make the containers.
As shylock73 says, a lining would provide even more protection and don't forget those drainage holes