I have deployed my service in AWS behind a load balancer
If I point http://subdomain.myservice.com to the DNS name of the AWS load balancer using a CNAME record, I can get my service respond to requests at http://subdomain.myservice.com/8080
But I would like it to work at http://subdomain.myservice.com
I've tried creating a CNAME record that points http://subdomain.myservice.com to the DNS name of the AWS load balancer adding :8080 at the end, but it didn't work.
How can I do that?
This is the Docker-compose file for the service
version: "2"
services:
api:
image: my_java_service
ports:
- "8080:8080"
links:
- mongo
mongo:
image: mongo_db
ports:
- "27017:27017"