The rule is one gallon capacity for each foot of growth. So if you have a 5 gallon bucket, you can grow as high as 5 feet. I have 3.5 gallon buckets and the one harvest I did they grew about 4 feet.

If you want to go any bigger than 5 feet, just plant directly into the ground.