As it decomposes, the food will provide nutrients directly into the ground. Find a location, where you can dig a hole without messing up your landscaping. If you are also using this method to dispose of cat or dog feces, make sure the hole is not within 100 feet of a water supply or stream, not near vegetation for consumption, etc. This depth will prevent animals from detecting its presence and digging it up. Decomposition time ranges from 2 weeks to one year for food wastes, and from 2 weeks to 2 years for feces.
Decomposition is effected by soil temperature and what microorganisms are present.
Chopping up materials before putting them in the ground will speed decomposition. The presence of a container alleviates you from having to choose a new location and having to dig a hole every time. It allows you to recapture the compost to use elsewhere. You can build or buy the bin. Many types and sizes of soil digesters are available through vendors.