10 gallon is nowhere big enough
you could do it but it would take a lot of work to get it done

Youd have to drill a drain hole in the bottom of the tank
get bio balls for a bottom drainage layer then weed fabric to keep soil outa the balls..
Then put your soil over the fabric by the time you put in the necessary amount of soil needed
you've already ran outa room for any kind of good root system for your plant..

Maybe a 30 gallon standing on end then the bottom 1/2 sealed to keep soil in would work..

but then how r u going to vent it..

I have lizards & extra tanks & have thought of everything to try but it just wasnt practical.