Hello! It seems like you are trying to deploy multiple Docker images on a single Azure Web App using Azure DevOps. I'll do my best to help you out. Based on your description, it seems like you have already created a Docker Compose file that includes both of your images. That's a great start! To deploy both X and Y in AWA on a Container job, you can follow these steps:
- In your Azure DevOps pipeline, add a new task to deploy your Docker Compose file to your Azure Web App. You can use the "Azure CLI" task to run the necessary commands.
- In the "Azure CLI" task, run the following command to deploy your Docker Compose file:
<span class=" active-doc-2" data-doc-items="2">az webapp create --resource-group <resource-group-name> --plan <app-service-plan-name> --name <web-app-name> --multicontainer-config-file <path-to-docker-compose-file[2](#doc-pos=2)</span>>
Replace <resource-group-name>
, <app-service-plan-name>
, <web-app-name>
, and <path-to-docker-compose-file>
with the appropriate values for your environment.
- Once the Docker Compose file is deployed, both of your images should be running on your Azure Web App. You can access the APIs of your
main-flask-app
by using the appropriate URL and port number. In your Docker Compose file, you have mapped port 5002 of themain-flask-app
container to port 5002 on the host. So, you should be able to access the APIs ofmain-flask-app
athttp://<web-app-name>.azurewebsites.net:5002
. I hope this helps! Let me know if you have any further questions.