Given the following setup of applications:
- App A: Docker-compose with a PostgreSQL image and a custom app image which uses that PostgreSQL image
- App B: Docker-compose with a PostgreSQL image and a custom app image which uses that PostgreSQL image
App B depends on App A, but App A could run and be tested in isolation without App B (and sometimes this is desired).
Is there a way to combine these different applications into a single Docker thing? I've read about stacks and bundles, but it's all a bit cryptic to me.