A lot of hydrangea can be planted in pots and urns, but the Endless Summer varieties are perfect for growing in cotainers because they bloom all summer long.
The container should be at least 18-20" across, large enough that you don't need to water it all the time and spacious enough for the roots to spread out.