# Run docker-compose from aws ecs instance

**URL:** <https://forums.docker.com/t/run-docker-compose-from-aws-ecs-instance/98447>\
**Category:** Compose\
**Tags:** dockerhub\
**Created:** [September 8, 2020, 5:55am UTC](https://forums.docker.com/t/run-docker-compose-from-aws-ecs-instance/98447 "2020-09-08T05:55:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arhmnsh](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/arhmnsh/32/28373_2.png) [@arhmnsh](https://forums.docker.com/u/arhmnsh)\
**Post date:** [September 8, 2020, 5:55am UTC](https://forums.docker.com/t/run-docker-compose-from-aws-ecs-instance/98447/1 "2020-09-08T05:55:58Z")

</div>

I have started an aws ecs instance with “ECS Optimized Amazon Linux 2” image. I have connect to the instance using ssh and then logged in to docker using command `docker login` .

I have a private repo on dockerhub, when I try to run in it using command `docker run -p 4001:4001 myUser/my-app` , it works fine. But when I run it using `docker-compose up` , it gives below error:

```auto
ERROR: 
        Can't find a suitable configuration file in this directory or any
        parent. Are you in the right directory?

        Supported filenames: docker-compose.yml, docker-compose.yaml

```

How do I let docker-compose know to get it from my dockerhub account?
