Compost can have poor structure for drainage and aeration.
Composted graded pine bark 5mm or more has good structure properties.
Composted food waste, coffee grounds, animal manure, fine sawdust etc can be very fine and eventually compact and lose drainage and aeration in pots.
Compost usually needs to be fully composted thru a few stages and aged for pot mix ( not so much for garden use ).
You can also get structure from inert particles like coarse sand, aquarium gravel or similar that is plant animal safe.
Also perlite, wood chips, clay balls etc.
Look around where you live, what is produced or mined there that is suitable and cheaper than buying from elsewhere.
Sawmills, gravel pits, brickworks, sand quarries, coarse river sand ( can have algae and pythium issues ).
Buying in bulk can also help if you will do a lot of pots. Bales coir can be cheaper overall than smaller paks.
This book is from Australia but will cover making potting mix very well.
https://www.google.com.au/books/edition/_/YG8_AAAAYAAJ?hl=en&sa=X&ved=2ahUKEwiG_fmQyZD5AhX8S2wGHf9lCMkQ7_IDegQIGhAF