How do I use my own domain with a container?
Every container has its own HTTPS address, shown on the Overview tab. You can also reach it on your own domain, such as app.example.com.
Connect a domain
Section titled “Connect a domain”- Open your container’s page and the Domains tab. At the top you see CNAME → with your container’s address. Click Copy.
- At your DNS provider, add a CNAME record. Name: the host name you want, for example
appforapp.example.com. Target: the address you copied. - Wait until the record is live. New records can take a few minutes to show up.
- Back on the Domains tab, enter the host name (for example
app.example.com) and click Add domain.
If your domain uses Phluit DNS, see How do I add, edit or delete DNS records?
We check the DNS record first. If it isn’t there yet, you see Add this DNS record first with the record to add: wait a few minutes and try again.
We issue a free certificate for the host name and turn on HTTPS for it. The HTTPS column shows On when it’s ready, or Being issued while we wait for it. If it doesn’t show On within an hour, click Issue certificate. If that fails, check that the host name still points to your container’s address.
The bare domain (example.com)
Section titled “The bare domain (example.com)”Use a subdomain, such as app.example.com, where you can. For the bare domain, your DNS provider must support CNAME flattening or ALIAS records.
Remove a domain
Section titled “Remove a domain”On the Domains tab, click Remove next to the host name and confirm. Then delete the DNS record at your provider if you no longer need it.
Good to know
Section titled “Good to know”- Your container’s own address keeps working after you add a domain.
- In a shared project, Developers and Admins can add and remove domains too. See What can each role do in a project?
Was this helpful?
Thank you. If something is missing, tell us.
