We enjoy growing our vegetables in containers. If we live in an apartment we prefer to grow our plants on rooftops, balconies, alleyways, sidewalks or whatever little space the gardener has available.
Remember that the deeper the pot, the larger the reservoir of moist soil and the less often you'll need to water. The exception is a self-watering planter. In this case, the depth of the planting area can be kept to a minimum because moisture is provided by a water reservoir below the planting area.