How to add DNS / FQDN when deploying via docker compose

Christian Becker 21 Reputation points
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.
757 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,487 Reputation points Moderator
    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.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.