Reputation: 2706
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?
Upvotes: 19
Views: 16253
Reputation: 3183
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
Upvotes: 41