See blog post:
Define a Docker Compose file, transpose to a Cloudformation template, and deploy the cluster to Amazon EC2 Container Service using AWS CLI
http://ericlondon.com/2017/07/21/define-docker-compose-file-transpose-to-cloudformation-template-and-deploy-cluster-to-amazon-ec2-container-service-using-aws-cli.html