0

I have created a node cluster on Docker cloud. I have one for the website and one for the DB. I have an IP address for the website, but I would like to be able to associate a sub-domain to it.

Does anyone know how, or if I can do that?

ncbl
  • 1,295
  • 2
  • 12
  • 19

1 Answers1

-1

You can use CNAME record at your DNS manager to point to the Docker Cloud service endpoint. This can be a subdomain.

e.g.

xxx.xxx.xxxxxxxx.svc.dockerapp.io  - CNAME    - sub.example.com
Shoaib Burq
  • 384
  • 2
  • 13
  • Unfortunately this doesn't work. You get a connection refused. – DanielC Jun 02 '17 at 00:18
  • Are you able reach the raw Docker Cloud Service endpoint? Sounds to me like you don't have the correct ports open for your web app. otherwise I have successfully done this for many apps. see https://docs.docker.com/docker-cloud/apps/ports/#service-and-container-dns-endpoints – Shoaib Burq Jun 02 '17 at 14:25