0

I am wondering if anyone knows the best way to create an Azure app service using my own mongodb image (has predefined data). I have created a web app using this image, but I am now trying to figure out how to open the required ports to access it using mongodb wire protocol. I don't want to use the CosmosDB as I already have predefined data and config setup in the image that I need.

Any help would be greatly appreciated Regards, Mitchell

Mitchell Day
  • 156
  • 1
  • 12
  • Does this answer your question? [Docker never runs on Azure - Waiting for response to warmup request for container](https://stackoverflow.com/questions/58723980/docker-never-runs-on-azure-waiting-for-response-to-warmup-request-for-containe) – CSharpRocks Mar 16 '22 at 00:05
  • Not quite. It still doesnt allow me to access the app service using a mongodb://:27017 url. I think there is two issues. 1 the app service doesnt allow mongodb wire protocol externally, and two the port config. This isnt the end of the world as I want another app service to access this app service via that protocol, so hopefully a private network and using internal IP address might solve the issue – Mitchell Day Mar 16 '22 at 01:20

1 Answers1

0

I'm afraid that it won't work. App Service can only expose HTTP protocol. You can not expose any other protocol.

Maybe Azure Container Instances work for you?

burna
  • 2,782
  • 17
  • 26