Docker-Compose Conditionality - Managing Diversity

Hey. This seems to resemble software refactoring a bit, doesn’t it? :slight_smile:

If the devices do a fundamentally different job, then it might make sense to arrange them as different applications.
Otherwise, as the previous comment says, you might want to make the unique aspects configurable within the application itself (using the environment variables).

There are container contracts for very specific use cases but the docker-compose natively does not support conditional statements AFAIK.