I am brand new to docker. I create a Django application on my local Windows 10 machine. I created Django app, Dockerfile, requirements.txt file and docker-compose.yml file. On my local machine when I issue command “docker-compose up” it works fine and Django application runs well. Below is the screen shot.
I want to execute the Django app image from Amazon EC2 Linux instance. To do that I copied Django app image from my local to EC2 instance. I tried to execute “docker-compose up” command on EC2 instance but it did not work and throw error - " Can’t find a suitable configuration file in this directory or any parent.".
Do I need to copy Dockerfile, requirements.txt file and docker-compose.yml file as well in my EC2 instance and build the image again to run the container on it?
This is my first post in docker forum so please forgive me if I did not follow the posting rules.