Docker images "depends_on" for service dependency


I want to setup an environment with multiple images but one depends on the other. Here is the configuration I am trying. The prisma image relies on the mysql image.

In normal docker-compose.yml I can use depends_on to express dependence between services but I am not sure on how to configure such a dependency in Circle CI.


I don’t think I’ve seen any way in which that is possible (though it may be worth checking the reference manual in case there’s a key for this in the docker YAML section).

However, you can install Docker Compose and then pull the images you need. That’s what I do, and I prefer it this way, because I can run it exactly the same way locally. This approach is called Docker-in-Docker and works pretty well (you just have to work around the lack of DC volumes).


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.