DependsOn vs links – docker-compose vs ECS task

DependsOn

property of ECS container definition is used for container dependencies

Links property of docker compose provides service dependencies.


We are mapping a docker compose file to ECS task definition.

Conceptually, Is the purpose of links property in docker compose similar to DependsOn property of ECS container definition?

Source: StackOverflow