We’ve got a use case EXTREMELY similar to the following thread where we have one version of our application that runs an integrated app/api with an attached screen and then one that runs with only the api and communicates over TCP/IP.
The difference here is that the integrated device with a screen is a Pi 3B+ and the standalone api is run on a Pi Zero W. They will share 2 of 3 services with the same exact code base. That means I’m forced to do two difference applications, which seems like the best option anyways, but I don’t really want to maintain two separate repositories.
What would work well is if I could somehow maintain two separate docker compose files, one that contains all three services and another that only has two. The second best would probably be if I could optionally start services but it doesn’t seem like that is possible. Being a relative docker noob I wanted to post here and see if you all had any suggestions.
This answer on SO seemed like a good option but I’m not sure how to define the key based on variables or what kind of options we had specifically to Balena.