Many years ago I worked for a company that did aluminium double glazing, and all the extrusions used to come from germany in crates just like that, the company had a stack out in the yard, about 50m long and 3-4m high and several boxes deep, when I needed some timber I asked if I could take some, and was told the more I took the better, my brother in law had a flat bed lorry, so we went and filled it up, he had half and boarded his loft out, with my half I built a 3m x 2m shed, fitted it out with shelves and benches.
I had that for around 15 years, until I moved out, and my dad had a garage built there.
I would get some preservative on the wood, line it with polythene pond liner or damp membrane with holes that line up with largish holes drilled through the bottom of the wood for drainage, then use it for whatever you want to plant.
Grendel