Learning some docker by using one of my old repos
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
src/main
.gitignore
Dockerfile
README.md
docker-compose.yml
pom.xml
spring-boot-jms-docker-wordpress.md
spring-boot-jms-docker.md
spring-boot-jms-tutorial.iml

README.md

How to run application

  • Clone the application
  • Build the application with Maven
    mvn install
    
  • Then just start the containers
    docker-compose up
    

That's all you need to do

To hit the endpoint in the Spring application, send a POST request to:

localhost:8080/transaction/send

With the body:

{
  "from":"you",
  "to":"me",
  "amount":200
}

The blog post Using Docker to shove an existing application into some containers contains context for this repository.