Two Spring Boot applications running in each docker image being build with docker-compose. Then they spun up also by using docker compose.
I have used a command center application and a spaceship application as demo applications in this case.
Both are exposing rest endpoints that gives a status and a destination for the spaceship.
Feel free to leave me a comment or questions.
The code is located here:https://github.com/ekim197711/springboot-docker-compose
Follow me on twitter:https://twitter.com/MikeMoelNielsen