A Webservice project which is based on Spring Reactive Framework using Spring WebFlux and MongoDB
brew tap mongodb/brew
brew install mongodb-community@4.2
brew services start mongodb-community@4.2
- If in case mongodb misbehaves
brew services restart mongodb-community@4.2
- Navigate to folder where Dockerfile is present
docker build .
docker run -p 8080:8080 -d <docker-image-id>
[The Docker image id will be available from Step #2]
This is only required if you are running WebFlux client and Webflux Web-app [Please ignore if you are only running the web-app]
- Build both the Dockerfiles
- For Spring Reactive Client the context should be the path where Dockerfile for the project is available Example:
context: /Users/a0r00rf/Downloads/spring-react-client
- Run
docker-compose up