Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Dropwizard based (executable jar) microservice example with docker config

Notifications You must be signed in to change notification settings

Diabol/microservice-example

Repository files navigation

microservice-example

The build.sh does a mvn clean install and also builds the diabol/slim:ms1 docker image.

To run the image, do

docker run -p 127.0.0.1:8081:8080 diabol/slim:ms1

If you are using boot2docker, the docker-host vm must be configured to port-forward properly to port 8081 in this case.

To stop the image, do 'docker ps' to find the container-id, then 'docker stop container-id'.

Heroku

You can deploy the app to the Heroku PaaS as well. It does not use the Dockerfile. Heroku reads the Procfile. It includes config.yml in the start command which has the necessary config to set the port according to Heroku standards. We configure dropwizard to expose the app under /app instead of :8080/.

About

Dropwizard based (executable jar) microservice example with docker config

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •