Skip to content

kazuki43zoo/nginx-springboot-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample for Nginx + Spring Boot on Docker container

Install the Docker

Clone repository on your local machine

$ git clone https://github.com/kazuki43zoo/nginx-springboot-demo.git

Build images & containers up

$ cd nginx-springboot-demo
$ ./mvnw clean package
$ docker-compose up --build

Containers up

$ docker-compose up

Containers down

$ docker-compose down

Access to Spring Boot via Nginx

$ curl -D - http://localhost:10080/hello
HTTP/1.1 200 OK
Server: nginx/1.9.3
Date: Sat, 20 Aug 2016 04:54:27 GMT
Content-Type: text/plain;charset=UTF-8
Content-Length: 5
Connection: keep-alive

Hello

Access to Spring Boot by directly

$ curl -D - http://localhost:8080/hello
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/plain;charset=UTF-8
Content-Length: 5
Date: Sat, 20 Aug 2016 05:06:27 GMT

Hello

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published