How to add DNS / FQDN when deploying via docker compose

Christian Becker 1 Reputation point
2022-03-31T16:01:06.273+00:00

Hi There,

I wan't to deploy a simple app with multiple containers to azure container instances using docker compose.

But how can I set the FQDN to make the containers available? I found some documentation on how to set it for a single container but no docs for docker compose.

Would be great to get some help

THX
Chris

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
663 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 25,446 Reputation points
    2022-04-02T00:55:14.08+00:00

    @Christian Becker

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    If you are looking deploying multi-container ACI, then you can have only one FQDN for the container group. Containers themselves cannot have FQDNs. You can have different containers listening on different ports on the container group's IP address (in turn the FQDN).

    You can't have multiple FQDNs for containers in the same container group. FQDN is supported only at the container group level.

    Ref: https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-groups

    189383-image.png

    Ref: https://docs.docker.com/cloud/aci-compose-features/

    189356-image.png

    Hope that helps.
    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

    2 people found this answer helpful.