Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

vikram1601/docker-java

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

This source code is an Spring Boot web application (mvc + thymeleaf).

Tested with

  • Docker 19.03
  • Ubuntu 19
  • Java 8 or Java 11
  • Spring Boot 2.2.4.RELEASE
  • Maven

For explanation, please visit this article - Docker and Spring Boot

How to run this?

$ git clone https://github.com/mkyong/docker-java
$ cd docker-spring-boot
$ mvn clean package
$ java -jar target/spring-boot-web.jar

  access http://localhost:8080

//dockerize

// create a docker image
$ sudo docker build -t spring-boot:1.0 .
// run it
$ sudo docker run -d -p 8080:8080 -t spring-boot:1.0

  access http://localhost:8080

About

About running Java in Docker container.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 53.8%
  • Java 26.1%
  • Dockerfile 13.1%
  • CSS 7.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.