You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This list shows that the depends_on option is ignored.
If this is the case, the examples which use depends_on to link containers are presumably invalid.
Could you please confirm whether depends_on is expected to work (my experience is that it does not)? If it does not, could you please explain how to create connections between containers in a multi-container app without using depends_on?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: b2472d79-baad-f202-75dc-c0d7c08e5c49
Version Independent ID: 7816cf1e-2264-e365-4d5c-b1fc9f7d08fe
@townxelliot We have also been unable to successfully use the depends_on feature with our docker image, which conflicts with the doc. As a result, we have assigned the feedback to the author to review this doc and make any changes as necessary. Thank you for raising this up.
Hi @townxelliot. Thank you for the feedback. As mentioned in the article, the Docker Compose sample was taken from https://docs.docker.com/compose/wordpress/#define-the-project . The sample includes "depends_on" and we didn't remove it because depends_on is ignored and has no effect on the configuration. I will update the article to call this out so it's not misleading. Thanks for pointing this out.
In terms of connections between containers, if you're asking how does a container know the other is online - you should include a retry mechanism to dependent services when the connection is dropped.
Hi @townxelliot, the article actually had an area for Supported Configuration options. I moved it above the Docker sample to help with visibility. The change will be live tomorrow morning. Thanks again for your feedback.
The article
https://docs.microsoft.com/bs-latn-ba/azure/app-service/containers/tutorial-multi-container-app
gives an example which shows
depends_on
being used in a docker-compose.yml file for creating a multi-container app.However, there is a page linked to this one:
https://docs.microsoft.com/bs-latn-ba/azure/app-service/containers/configure-custom-container
with a section about supported docker-compose options (https://docs.microsoft.com/bs-latn-ba/azure/app-service/containers/configure-custom-container#docker-compose-options).
This list shows that the
depends_on
option is ignored.If this is the case, the examples which use
depends_on
to link containers are presumably invalid.Could you please confirm whether
depends_on
is expected to work (my experience is that it does not)? If it does not, could you please explain how to create connections between containers in a multi-container app without usingdepends_on
?Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: