Figs in containers are usually fairly easy given some basics.
(1) Keep the roots well contained. Mine, now five years old, grown from a cutting, spent its first couple of years in a 25cm pot. It's now had three years in a 40cm pot and produces happily every year. I might step it up one size next year.
(2) It needs a very sunny spot in summer with protection from strong winds if they're around. Water daily if need be in hot weather. With our temps constantly in the high-30sC this summer I've been watering twice daily.
(3) If you get cold winters, it needs protection. I wrap the container in a couple of layers or bubble wrap, the tree itself in a couple of layers of heavy-duty fleece, and park it against a protected wall under the pergola on the terrace. Otherwise, indoors with plenty of light - and protection if need be - will do the job. The key is to monitor the moisture levels over winter. Mine gets at least a couple of good drinks of lukewarm water over the winter period.
(4) They're not big feeders even in containers. I give mine a dose of balanced fertiliser in spring and that's it.
(5) Once they're established in their final container home, give them a root prune every couple of years in spring. The pruning sounds brutal but it's (a) necessary and (b) the tree thrives afterwards. Remove the tree from its container - which can be hard work in itself - and use a sharp handsaw to cut wedges from the root ball as you would slices from a pie. It can be hard work, too, because the root ball is pretty solid. I usually take out about three good wedges. Return the tree to the container, filling in the newly-created space with whatever medium you're using. Pack the medium down well to get rid of any air pockets and water.