title: Is it possible for a Spring Batch to start a Container with an external app?
body: <p>Let's say we have a REST app with its REST end-points that we can wrap in a Docker container.</p>
  
  <p>Let's say our Spring batch's <code>Item Processor</code> likes to use the above app to get business logic information about a record it is handling.</p>
  
  <p>We like this REST app to be used solely by the <code>Spring Batch</code> process and we don't like the Batch process to communicate with the Production REST app, but to have some kind of it own instance of the REST app. </p>
  
  <p>We also like that this app instance will be created automatically when the Spring Batch process starts, so no extra human intervention or configuration is needed.</p>
  
  <p>Is it possible that the Spring batch will use run and use the REST service as a Docker container (maybe as <a href="https://www.testcontainers.org/" rel="nofollow noreferrer">testconainer</a> or maybe <a href="https://docs.docker.com/compose/" rel="nofollow noreferrer">docker compose</a>?) so it can use it "internally" in some way?</p>
  
  <p>Is this a reasonable architecture?</p>