Reputation: 311
I have a metabase docker image running on my Azure container. It can be accessed through azure's fqdn:port_number (port is 3000) or ip:port_number. I want to give a nice domain name for this application through cloudflare(. How can I do this? Thanks in Advance!
PS: There were some topics on this in cloudflare community but I couldn't fine any answer relevant for me.
Upvotes: 0
Views: 855
Reputation: 28224
You could add a CNAME
record to point subdomain such as www.example.com
to the FQDN value of your Azure container like containerdns.westus.azurecontainer.io
.
Example of a CNAME record:
name: www
record type: CNAME
value: FQDN value of your Azure container
TTL: 32600
ref: https://www.cloudflare.com/learning/dns/dns-records/dns-cname-record/
https://support.cloudflare.com/hc/en-us/articles/360019093151-
From your comment, you want to access myapp.com
which actually points to fqdn:port
. In this case, you could create and configure an application gateway to host web sites with custom ports using the Azure portal. If you have multiple sites, you could follow this tutorial.
You could follow the steps below:
containerdns.westus.azurecontainer.io
Pick host name from backend http settings
and the remaining setting is the default.Pick host name from backend address
and use custom probe and select custom probe.CNAME
record mapping the subdomain www.myapp.com
to the FQDN of your application gateway.I validate this on my website on Azure VM, hope this could help you.
Upvotes: 1