I deployed a multi container Docker compose yml file to Azure Web app. It Contains Wordpress, MySql, and PhpMyAdmin. When I Click on the URL. The app works fine but it loads only Phpmyadmin and not Wordpress. Please help me out. I will post the Yml file below.
Sounds like you're using the wrong image for your base. I'd start from scratch for this. In any case, I would NOT recommend doing this for a production site. Use MySQL PaaS.
@@Atmosera- Thanks for your response. I have deployed 2 app services in Azure web apps with Docker-compose.yml file. The first app has MySql and Wordpress. And the second app has PhpMyAdmin. I have to connect both the apps so that I can login to 1st app MySql database from PhpMyAdmin on 2nd App. Any suggestions please.?
@@PremKumar-ip8eo Check your compose file to make sure that port 80 is exposed on the correct port. Otherwise, use a different based image for the database. But again, I would NOT recommend doing this. Use Azure MySQL for the database
@@Atmosera- Can you elaborate on why you would not recommend using a custom SQL container over an azure solution? Having a multi container solution setup to include an SQL container with the appropriate volumes to share data makes way more sense to me. Looking forward to your reply.
@@ItsAlienMoose App Services does not have an SLA that ensures that the SQL container will stay up. It may shut it down and move it in the middle of a transition, which would be bad for your data. So keep your databases out of the App Service for prod stuff. For dev, maybe that's okay, but I wouldn't recommend it for prod ever.