1

I have a domain name mydomain.com registered on amazon route 53.

I have an EC2 instance in which I installed a docker portainer image under 9000 port.

My docker image run perfectly under ec2 public ip address: http://xxx.xxx.xxx.xxx:9000

What I want now is to create a subdomain: portainer.mydomain.com and pointed it to my EC2 portainer instance.

When I try to create a new record set portainer.mydomaon.com and point it to my docker image instance I can't specify the port value.

I know I miss something, I'm on my beginning on DNS domains.

medkhelifi
  • 1,071
  • 3
  • 17
  • 35

1 Answers1

2

Route 53 is a DNS resolver. Its job is to resolve domain to ip address. It has nothing to do with port. But there are some alternatives:

  1. Add a secondary ip to the instance to host multiple websites and bind them to port 80. You add an additional ip by attaching elastic network interface (ENI).
  2. Add Application Load Balancer with host based routing (you will get much more control, you can even do path based routing as well). See: Listeners for Your Application Load Balancers - Elastic Load Balancing
  3. S3 redirection (Route 53 Record Set on Different Port)
Rockr
  • 65
  • 7