Installation instructions are found here: Docker documentation
- At repo's root level, run
docker-compose up --buildto create and start all the services from the configuration. This uses thetestSpring profile - Swagger ui at http://localhost:8080/v3/swagger-ui.html
- Use the command
docker-compose downto stop any containers from running and to remove the containers, networks, and images created by thedocker-compose upcommand. This command should always be done before any new attempts to restart the services from the configuration.
run example app on localhost
if using docker-compose to bring up example app, can do the following to run the tests instead of installing node
docker run -v $PWD:/etc/newman -t --network container:mms postman/newman:alpine run crud.postman_collection.json --environment="test-env.json" --delay-request=300
otherwise install Node.js, if not already installed
copy localhost-env.json.example to localhost-env.json, change values accordingly
npm install -g newman newman run crud.postman_collection.json -e localhost-env.json --delay-request 300
Swagger 3 UI at http://localhost:8080/v3/swagger-ui.html