Hybrid connections do not work with docker-compose web apps ?

Abdelmuhaimen Seaudi 0 Reputation points
2024-06-28T08:15:15.15+00:00

I noticed that hybrid connections do not work inside running containers in azure web apps based on docker-compose.

root@8f3f5c124942:/# nslookup test.example.com

Server: 127.0.0.11

Address: 127.0.0.11#53

** server can't find test.example.com: NXDOMAIN

root@8f3f5c124942:/#

So, I created a web app based on github source code for a simple nginx web server, and after i login to the container, i see that the hybrid connection is working fine.

root@test-simpl_fef26b0aa2:~/site/wwwroot# nslookup test.example.com

Server: 127.0.0.11

Address: 127.0.0.11#53

Name: test.example.com

Address: 127.0.0.14

root@test-simpl_fef26b0aa2:~/site/wwwroot#

Is this feature supported, hybrid connection on azure web-app using docker-compose ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,249 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,701 Reputation points Microsoft Employee
    2024-06-29T02:44:24.88+00:00

    @Abdelmuhaimen Seaudi There is no current plans to advance Azure Web App Docker Compose beyond what is currently supplied.

    The next direction is Azure Sidecar. If you are requiring this setup, I would suggest building your app for this path. https://techcommunity.microsoft.com/t5/apps-on-azure-blog/a-glimpse-into-the-future-the-sidecar-pattern-on-linux-app/ba-p/4045680

    Regarding your question, typically multi-container apps in Azure require a VNET for a unified hybrid connection interface. In this instance, we do not support VNETs on Docker Compose apps, so using a unified network experience such as Hybrid connections are not possible. Source: https://video2.skills-academy.com/en-us/azure/app-service/overview-vnet-integration#troubleshooting

    0 comments No comments