https://github.com/saravanan81java/spring-boot-dockerize
spring boot dockerize master
https://github.com/saravanan81java/spring-boot-dockerize
docker docker-compose docker-container java spring-boot
Last synced: 10 months ago
JSON representation
spring boot dockerize master
- Host: GitHub
- URL: https://github.com/saravanan81java/spring-boot-dockerize
- Owner: saravanan81java
- Created: 2024-10-04T20:18:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-22T00:42:39.000Z (11 months ago)
- Last Synced: 2025-03-27T21:11:09.659Z (10 months ago)
- Topics: docker, docker-compose, docker-container, java, spring-boot
- Language: Java
- Homepage:
- Size: 13.9 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-boot-dockerize
How to Dockerize Spring Boot Application
# Build Docker Image
$ docker build -t spring-boot-docker.jar .
# Check Docker Image
$ docker image ls
# Run Docker Image
$ docker run -p 9090:8080 spring-boot-docker.jar
In the run command, we have specified that the port 8080 on the container should be mapped to the port 9090 on the Host OS.