Deploy Postgres Docker Image in Azure App Service

Prabhu A 0 Reputation points
2023-01-30T12:58:14.9433333+00:00

Hi Team,

I have an open source Postgres DB Docker image available. The same image needs to be deployed in Azure Linux based web app. Is there anyway available to deploy this in app service. I tried with the image its not working as expected. If anyone have experience please help us out with the steps to deploy Postgres image on azure web app.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andriy Bilous 10,901 Reputation points MVP
    2023-01-30T14:28:07.69+00:00

    Hello @PRABHU A

    In Azure Web App you can only expose one port to the outside world and you can use only two ports: 80 and 443 .

    See limitations

    You can use Azure Database for Postgress instead or create a multi-container (preview) app in Web App for Containers to host your app together with DB

    See SonarQube + DB deployment to Azure App Service as an example
    https://lemtirisalah.com/deploying-sonarqube-and-sql-server-in-azure-app-service-for-containers-with-docker-compose/

    0 comments No comments