I'm new to using AWS and very confused.
I've got my project containerized locally - a node.js tech stack that uses an express server and socket.io as well as a postgres database. I use docker-compose up to get it running locally, and from there my front-end is able to speak with it; now I'm trying to get the container running on AWS.
So far I have:1) Created an EC2 instance on AWS2) SSH'd into the EC2 instance 3) From my local repository, used Git to push my files into EC2 instance - I can see them from my ssh console.
My question is, where do I go from here? 3 parts to the question.1) Since .env and docker-compose.yml are in my .gitignore file, how do I recreate them on the server?2) How do I run the docker-compose up command in the EC2 instance? Once I do that, will it just be permanently live like servers are when I deploy them to heroku?3) Once I've got the API running in AWS, how do I know the endpoint to use for my front-end?
Thanks for your help!