Preparing the host for Docker and Docker Compose
Before you configure the software on the host, you should ensure that it has a stable IP address. Sometimes these are referred to as static IP addresses, or Elastic IP addresses, in an AWS context. You may need to specially allocate these IP address through your provider, which can often be done through the provider's console, such as with the Network tab in AWS Lightsail, or the Elastic IPs settings in the AWS EC2 console.
Also, you should map an address (type A) record in a Domain Name System (DNS) zone that you control to the IP address so that your users can get to the application by using a short name, such as shipitclicker.example.com
instead of a raw IP address, such as 192.2.0.10
. All public cloud systems have the ability to manage DNS entries—for example, AWS Route 53 (https://docs.aws.amazon.com/route53/index.html), and most virtual hosting systems have this capacity as well.