Search code examples
azurednsmarathondcos

How to configure subdomain for Azure DCOS?


I've installed my application on azure DCOS container service. I use marathon-lb to map docker containers to the external point. Config looks like:

"labels":{
    "HAPROXY_GROUP":"external",
    "HAPROXY_0_VHOST":"mycustomename-devagents.westeurope.cloudapp.azure.com",
    "HAPROXY_0_MODE":"http"
  }

Is it possible to map different service to api1.mycustomename-devagents.westeurope.cloudapp.azure.com, api2.mycustomename-devagents.westeurope.cloudapp.azure.com?

Or better map services directly to api1.my-site.com. api2.my-site.com?


Solution

  • Nothing prevents you from doing that, add a cname alias to api1.my-site.com pointing to api1.mycustomename-devagents.westeurope.cloudapp.azure.com and you are done.