An open API service indexing awesome lists of open source software.

https://github.com/edgar-code-repository/running-rest-demo-with-docker

Running a simple Rest API with Spring Boot and Docker
https://github.com/edgar-code-repository/running-rest-demo-with-docker

docker rest spring-boot

Last synced: about 2 months ago
JSON representation

Running a simple Rest API with Spring Boot and Docker

Awesome Lists containing this project

README

          

REST DEMO WITH DOCKER
-----------------------------------------------------------------------------

Rest API that runs on port 5000 and contains just two simple endpoints:

http://localhost:5000/hello

http://localhost:5000/hello-to-you/{name}

-----------------------------------------------------------------------------

After packaging the Java application as a Jar file, the Docker image is built and run with these commands:

```

docker build -t running-rest-demo-with-docker:0.0.1 .

docker run -d -p 5000:5000 running-rest-demo-with-docker:0.0.1

```

-----------------------------------------------------------------------------