Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Startup File" on Azure Docker Web App

Is the "Startup File" option on the docker web app options for docker-compose files? or shell commands? I cannot find any documentation for it...

Basically I'd like my Web App to run a docker-compose.yml instead of executing docker run [options] when I push an image to it.

Docker Startup File Option

like image 864
Jacob Weimer Avatar asked Nov 28 '17 23:11

Jacob Weimer


People also ask

How do I upload files to Azure web app?

In the browser, navigate to https://<app_name>.scm.azurewebsites.net/ZipDeployUI . Upload the ZIP package you created in Create a project ZIP package by dragging it to the file explorer area on the web page.

What is Azure Docker file?

The Docker Azure Integration enables developers to use native Docker commands to run applications in Azure Container Instances (ACI) when building cloud-native applications.

How do I access Azure App Service files?

You can access it from within the App Service Editor under your app name -> Open Kudu Console or through the portal under Advanced Tools.


1 Answers

Not sure if this is still a problem but I just noticed it appends whatever you put in there to the default startup command.

2019-09-02 05:03:04.493 INFO  - docker run -d -p 55721:80 --name xxxxxx -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITE_SITE_NAME=xxxxx -e WEBSITE_AUTH_ENABLED=False -e PORT=80 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=xxxxxx.azurewebsites.net -e WEBSITE_INSTANCE_ID=xxxxxxxxx -e HTTP_LOGGING_ENABLED=1 xxxxxx.azurecr.io/xxxxxxx:latest -p 80:4000 -p 443:8000

I put the -p 80:4000 -p 443:8000 into the textbox in the portal config

like image 93
soutarm Avatar answered Sep 21 '22 16:09

soutarm