Juli they make containers with a large cutout that just sits on top of standard 2 x 4 railing.Or just hang from railings.
http://www.hooksandlattice.com...
I don't know this company just to show some pics. I got some at a good price on ebay last year. Do early season greens for summer you can do some herbs or flowers then some cold weather greens in the fall.