I dislike peat moss, so if I were creating my own mix, I'd probably start with compost and then add an equal volume made up of a mixture of worm castings, a good portion of perlite, maybe some coarse sand or fine gravel (I'm fond of the fine gravel sold for aquariums, which has grains between 1/16 and 1/8" in diameter), and some leaf mold.
You mention that you want to use your mix in containers, and for that, I consider the perlite (I have a dislike for vermiculite that almost
equals my dislike for peat moss ...
) and coarse sand/fine gravel are absolutely vital. Don't stint on them.
I have a hard time classifying raised garden beds as "containers". (The exception would be very small raised beds, no more than 3' on a side.) The reason for that is that, to me, a container, i.e. flower pot or planter, has an attached bottom, the presence of which seriously restricts drainage. The majority of raised garden beds do not
have closed bottoms, but are just a frame of sides set on the ground. Even raised beds placed on a solid surface, such as a concrete patio, have less restricted drainage than a pot with a few holes in the bottom. But that's just my own point of view, and it's fine with me that not everyone shares it. The gist of this paragraph is that a soil mix destined for use in planter with an attached bottom must
provide excellent drainage, whereas a mix destined for use in a large raised bed with an open bottom can get away with being a bit heavier. For that
reason, I stress the necessity of adding plenty of perlite, along with some fine gravel to mixes destined for use in containers. JMO.
"Isn't it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?" - Douglas Adams