Hello
I’m running a set of containers as defined as follows by a docker-compose file:
services:
experience:
image: experience
profile:
- measure1
- measure2
measure1:
image: measure1
profile:
- measure1
depends_on:
experience:
condition: service_healthy
measure2:
image: measure2
profile:
- measure2
depends_on:
experience:
condition: service_healthy
analyze:
image: analyze
depends_on:
measure1:
condition: service_completed_successfully
measure2:
condition: service_completed_successfully
I would want the depends_on of analyze to not be an issue when running only one of the measure containers.
This comes from the fact that measuring can be really long and I may want to change only one of the measurement protocols or the analysis and use the data of a former measurement.
Currently, I’m using environment variables for the measure containers to run but exit as soon as they are not needed, but I recently discovered the profiles and they seem made for that purpose.
I’m deploying everything using docker-compose v3.9 and running on ArchLinux with a docker server and client 24.0.2 and an API 1.43.
Thank you in advance and I stay at your disposal for further details