Minerals are produced from your planets... they tell you what you get from when you go to manage colonies and check for the "minerals" boxes. They tell you what each planet produces. They produce a certain amount every turn you make, and you can produce more if you research about "mining" at the research page.
Researching about mining also increases your chances of getting more ore AND minerals, but your mining infrastructure only helps how you get your ore