Currently, the way Docker containers are deployed on AWS is basically having them run on an EC2 instance (with public IP 3.232.82.82). This means that each service occupies a unique port on the machine. Below is a list of running services and the ports they are using.
| Service | Port |
|---|---|
| Backend offline | 5000 |
First, download the key pair file DIAPER-test-key.pem and ssh into the EC2 instance using
ssh -i /path/to/DIAPER-test-key.pem ec2-user@3.232.82.82 |
Then, pull your Docker image and other relevant file from GitHub. Once pulled, navigate to the project folder you just uploaded and run the Docker as you would do locally. To keep your service from blocking the console, you should run your Docker in detached mode or, alternatively, enter ctrl-z to suspend the service and run the following commands
bg disown -h |
Then you can log out and the service will continue running on the EC2 instance.