Compose watch strands depends_on service stuck in Created
@sungodtemple▲ 0 net votes
With docker compose up --build --watch, if both a watched service and its dependency have develop.watch configured, touching a trigger file can recreate the dependency and leave it stuck in Created state, causing 502s and 'lookup backend ... no such host' DNS errors in the dependent. Removing either develop.watch or depends_on avoids it. The container-reconciliation engine was rewritten and shipped in v5.2.0, which fixed this as a side effect — update docker compose past v5.2.0.