question

GeorgeStevens99 avatar image
0 Votes"
GeorgeStevens99 asked ajkuma-MSFT answered

Docker Compose in App Services using the Dapr sidecar

I have 2 ASP.NET Core grpc services in containers that runs on my desktop, each having its own Dapr side car. I am using Docker Compose to run the containers. In order to ensure each grpc service starts and then runs long enough for its Dapr side car to start up I am using depends_on. I.e. the grcp service depends on its Dapr side car to be running before it starts. This is done in the yaml for Docker Compose.

Unfortunately, when I do not use depends_on, the grpc service starts then quickly stops, not waiting for the Dapr sidecar to start.

I want to move this system to Azure App Services and be able to expand this simple system to use Dapr sidecars on many of my services there. However your documentation says the depends_on is an Unsupported Option -- https://docs.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-linux#unsupported-options.

Please implement depends_on in App Services or tell me a simple, non-fragile, surefire (hopefully declarative) way I can ensure both my grpc service and Dapr sidecar ALWAYS start properly when hosted in containers in Azure App Services.

Thanks!

azure-webapps
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GeorgeStevens99, Thanks for the detailed description of the scenario and your feedback on this. I'm checking on this internally and will get back to you shortly.

0 Votes 0 ·

1 Answer

ajkuma-MSFT avatar image
0 Votes"
ajkuma-MSFT answered

@GeorgeStevens99,

I have received an update from our product engineering team.

There aren’t plans at this time on addition of new features for current docker compose multi-container implementation on Linux App Service. As you highlighted, the 'depends_on' is unsupported compose option. The service is in preview and the limitations mentioned in the doc are still effective.

We really appreciate your valuable feedback on this.

I’m not a docker expert, you may try additional way to something in the individual dockerfiles to hack up a dependency chain between the containers (as you’d normally do on-prem/offline|non-cloud) environment).

It is on our backlog to bring dapr sidecar support to App Service however there is no concrete ETA to share at this time.
Please be reset assured that I have shared your feedback with our product engineering team.

Thanks for your patience and collaboration.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.