My wife kinda does that with a herb garden ... she had me get a big old tractor rear tire and some dirt ... she took the first year composting in the tire and mixing in dirt ... as for how its working I don't know ... she swears by it.
She has parsley, winter onions, dill, mustard seed (greens) and I think more. I can tell you when its time we have an abundance of the stuff she has in it. I love those winter onions.
I remember once she brought in some tomatoes at a weird time of the year ... when I asked her about it ... she said I guess they just grew from the tomatoe's I was composting.