We run Java Spring Boot app in a Docker on Azure WebApp for Containers. Single B1 instance is enough for the app to run, however Spring Boot is pretty slow at startup and might take over 240 seconds for the app to start.
As the result Azure WebApp for Containers kills the container after 240 seconds not giving it enough time to start.
Is there any way to change the default 240 seconds startup timeout?
Just pull container images from Docker Hub or a private Azure Container Registry, and Web App for Containers will deploy the containerized app with your preferred dependencies to production in seconds. The platform automatically takes care of OS patching, capacity provisioning, and load balancing.
Deploy to Azure in seconds It has never been easier to deploy container-based web apps. Just pull container images from Docker Hub or a private Azure Container Registry and Web App for Containers will deploy the containerised app with your preferred dependencies to production in seconds.
Work with . NET, . NET Core, Node. js, Java, Python, or PHP in containers, or running on Windows or Linux.
Yes, you can configure the amount of time. Set the WEBSITES_CONTAINER_START_TIME_LIMIT App Setting to the value you want.
Default Value = 230 Sec.
Max Value= 1800 Sec
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With