# How do I use my own domain with a container?

> Connect your own domain to a Phluit Edge Container: add a CNAME record to the container's address, add the host name on the Domains tab, and get free HTTPS.

Source: https://docs.phluit.com/products/edge-containers/edge-container-custom-domain/

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

1.  Open your container's page and the **Domains** tab. At the top you see **CNAME →** with your container's address. Click **Copy**.
2.  At your DNS provider, add a **CNAME** record. **Name:** the host name you want, for example `app` for `app.example.com`. **Target:** the address you copied.
3.  Wait until the record is live. New records can take a few minutes to show up.
4.  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?](/products/domains-dns/manage-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.

## HTTPS

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)

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

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

-   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?](/platform/teams-and-projects/project-roles/)
