Deploy application in AWS EC2 machine with docker compose yml

I am new to CircleCI and I need help for config.yml through which i planned to deploy my prebuilt docker images stored in ECR repository to a particular EC2 machine through docker-compose yml.
Kindly point out some example to achieve this task.

Thanks in advance!