I am gonna jump in here and go against the grain for a second. I know it's not a popular fish by any means because a lot of "experts" will say you need a mature tanks with tons of pods etc, PART of this is true, but not the whole truth. It is not that difficult of a fish to keep.
I successfully kept one in a 24 gallon, and I will tell you what I did so I hope you can be successful too. First of all, they are wonderful creatures and should only be kept with other peaceful fish, if you have any others at all. You do need to seed your tank with pods, that is literally what they instinctively eat all day every day. They do not swim casually in your tank, all they do is "graze" the rock and float on the sand/rock looking for tiny pods to munch on. You also need a lot of rock in your tank, the pods will not thrive if you do not have a lot of rock, if they cannot hide and multiply in the rocks from the dragonet, they will lose the fight from the enormous appetite that is the dragonet.
How do you become successful at keeping one? You seed the tank, and you wait till the pods take hold. Keep in mind you will have to feed the pods now too at this point, they eat Phytoplankton and can be bought in bottles. I would say let the pods multiply for at least a month, two months is better. Your tank is ready for a dragonet at this point. Now it will probably not hunt pods right away, most dragonets are very shy and need time to adjust to your tank. Make sure they can hide from you. Once they start eating, you can start training them on frozen or better, pellets!
Every single day, probably twice a day, you will have pellets of food or frozen food ready that you will soak in saltwater and possibly kents garlic juice to spice it up and suck up with a feeding pipet, and once you turn all the flow off in the tank, make sure you drop the food you want it to eat near the dragonet. It will not eat right away, but if you persist, after a week or maybe two, when you think it won't ever touch that food, it suddenly will be enticed to eat some of it, and it will love it. You then have a trained dragonet, that eats every time you will feed it, with high protein food, to keep it well fed and happy.
Once it's trained, it's just like any other fish.
If you are keeping it by itself, I would say a 20 gallon is just fine. If you keep more than that fish, you will probably need something bigger.
Here is a video of mine eating Hikari Marine S pellets before she passed (murdered by anemone):