Docker Compose - keep showing info - 'Stopping site xxx because it failed during startup"

it prizm 6 Reputation points
2021-06-03T10:21:07.113+00:00

When use Docker Compose to build a container or multi-containers in Azure Web app, never download requested images and bring up instances, even restart App services.

repeat log:

2021-06-03T08:08:29.099Z INFO - Stopping site xxx-app because it failed during startup.
2021-06-03T08:12:44.289Z INFO - Stopping site xxx-app because it failed during startup.
2021-06-03T08:17:24.883Z INFO - Stopping site xxx-app because it failed during startup.
2021-06-03T08:22:06.149Z INFO - Stopping site xxx-app because it failed during startup.
2021-06-03T08:26:20.020Z INFO - Stopping site xxx-app because it failed during startup.
2021-06-03T08:31:10.644Z INFO - Stopping site xxx-app because it failed during startup.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,809 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. ajkuma 26,216 Reputation points Microsoft Employee
    2021-06-04T16:07:05.68+00:00

    @it prizm , Thanks for posting the question.

    There could be many causes for this start-up errors. To isolate, kindly find more error details in the docker logs:

    1.You may also review the logs Azure Portal and also logs at Kudu- https://<yourwebpp-name>.scm.azurewebsites.net/api/logs/docker

    2.Only supports to expose the port 80 and 443.

    By default, App Service assumes your custom container is listening on port 80.
    If your container listens to a different port, set the WEBSITES_PORT app setting in your App Service app.
    App Service currently allows your container to expose only one port for HTTP requests.

    In the Docker log, see if ‘docker run’ command was run, Review to see if ports are exposed.

    Please see this doc:
    https://learn.microsoft.com/azure/app-service/faq-app-service-linux#multi-container-with-docker-compose


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.