Docker Compose fits the acceptance testing process perfectly because it enables setting up the entire environment with one command. What's more, after the testing is performed, the environment can also be cleaned up with one command. If we decide to use Docker Compose on production, then the other benefit is that the acceptance test uses exactly the same configuration, tools, and commands as the released application.
To see how to apply Docker Compose for the Jenkins acceptance testing stage, let's continue the calculator project example and add the Redis-based caching to the application. Then, we will see two different approaches to run acceptance testing: the Jenkins-first method and the Docker-first method.