Azure App service Multiple ports in a Docker compose issue

H. Mendez 1 Reputation point
2022-07-02T16:56:27.39+00:00

HI there!

I have the following scenario. I have a micro front architecture with 7 mfes. I am working on the CI pipeline and I would like to use an app service to use the 7 images that I have in the ACR. I create an app service with Docker compose (preview) as you see below. the docker-compose yml looks like the below. My intention is to have only one app service instance of seven app services. My issue is that although I set ports on the yml I am not able to access the service by the port. For instance, shared components web app is in port 85, so when I try the url https://???.azurewebsites.net:85.
is it a way to allow to access individual web apps in a docker-compose (preview)? if yes, what I am doing wrong. Do you have any examples like this case?

version: '3.7'
services:
main:
image: ?????.azurecr.io/dashboard-image
ports:
- 5000:80
depends_on:
- sharedcomponents
sharedcomponents:
image: ?????.azurecr.io/sharedcomponents-image
ports:
- 5005:85
web3:
image: pivotalshell.azurecr.io/web3-image
ports:
- 5003:83
depends_on:
- sharedcomponents
web4:
image: ?????l.azurecr.io/web4-image
ports:
- 5004:84
depends_on:
- sharedcomponents
web5:
image: ????.azurecr.io/web5-image
ports:
- 5001:81
depends_on:
- sharedcomponents
web6:
image: ???.azurecr.io/web6-image
ports:
- 5006:86
depends_on:
- sharedcomponents
web7:
image: ????.azurecr.io/web7-image
ports:
- 5007:87
depends_on:
- sharedcomponents

216950-image.png

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

1 answer

Sort by: Most helpful
  1. risolis 8,741 Reputation points
    2022-07-02T21:26:54.547+00:00

    Hello @H. Mendez

    Thank you for your comment.

    Let me give the next info below since this could fit into your case scenario as shown below:

    217103-image.png

    I hope this can help you to get this going.

    Looking forward to your feedback,

    Best Regards,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

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.