My neighbor grew tomatoes on her fire escape. She had no dirt. No yard. Just three buckets and a dream. Her tomatoes tasted better than anything from the store. That was the day I learned you do not need land to grow food.
You just need a pot. Some dirt. A little water. And a few tricks that container gardening hacks for apartments.