I think there's a misunderstanding.
In the docker-compose.yml, you specify services, and these services can use the official container images.
The only thing the docker-compose actually does is define your services so you don't have to specify them each time starting a container.