I have seen the question about soil for containers posted before (you might try doing a search) and it has gotten mixed responses -- different gardeners have different answers, which is frequently the case
I can only tell you my take from my personal experience, which is that garden soil and even (my) compost are too heavy and dense and hold too much moisture for use in containers. It works much better to use actual potting soil. You can add some compost to the potting soil, but for me (my unturned compost has a consistency about like chocolate brownies... if you turn your compost pile frequently you might have lighter, fluffier compost), I wouldn't use more than 1/4 compost to 3/4 potting soil.
If you search, there are recipes posted here for homemade potting soil, from topsoil, peat moss, vermiculite, etc. I've tried doing that and it's too much hassle for me (if your container is going to come inside, then the soil and/or compost has to be sterilized which is slow and stinky), but it works for some...