News for hackers. Stuff that matters.
Re:Docker's Second Death by OJFord on Sunday December 06, 2020 @09:27PM (#25328796)
Hm, yes, but to play devil's advocate - if you want compose for orchestration (I don't) then you want that dependence not so much for initial start up, but for triggering restarts on failure.

As it stands, AIUI, all it does is mean that dependency A comes up too (in some order) when you `up B`.

Re:Docker's Second Death by nikisweeting on Sunday December 06, 2020 @10:29PM (#25329070)
You can define any order or restart behavior you need with v2. As long any container with a service dependency fail hards if that dependency is missing/down, it will be restarted and the whole app will eventually reach an up state.

    restart: on-failure
    depends_on:
      other_service:
        condition: service_healthy
https://docs.docker.com/compose/compose-file/compose-file-v2...

https://docs.docker.com/compose/compose-file/compose-file-v2...

Re:Docker's Second Death by klibertp on Monday December 07, 2020 @04:31AM (#25330631)
From GP:

> Problem being, "depends_on" was removed in version 3, with no replacement in sight.

How is v2 relevant?

Re:Docker's Second Death by nikisweeting on Monday December 07, 2020 @07:44AM (#25331591)
v2 and v3 specs are merged as of September apparently, so either set of options works in the current version. (See cousin comments above)