Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mechero/spring-boot-hola-docker
Example of Dockerized Spring Boot application
https://github.com/mechero/spring-boot-hola-docker
docker spring-boot
Last synced: 24 days ago
JSON representation
Example of Dockerized Spring Boot application
- Host: GitHub
- URL: https://github.com/mechero/spring-boot-hola-docker
- Owner: mechero
- Created: 2017-12-09T18:58:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T17:14:12.000Z (over 6 years ago)
- Last Synced: 2024-10-04T13:31:21.586Z (about 1 month ago)
- Topics: docker, spring-boot
- Language: Java
- Size: 4.88 KB
- Stars: 19
- Watchers: 2
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hola Docker with Spring Boot
**Updated**: Now the code uses Spring Boot 2 and Java 10.
This project shows you how to dockerize a Spring Boot application using a single `Dockerfile` or combining it with `docker-compose`.
The guide to build the code and understand the different alternatives is located at [https://thepracticaldeveloper.com/2017/12/11/dockerize-spring-boot/](https://thepracticaldeveloper.com/2017/12/11/dockerize-spring-boot/).
## Running the app with Docker
Make sure you generate first the `.jar` file by running:
`mvn clean package`
Then, you just need to execute:
`docker-compose up`
Note that there are two Dockerfiles in this repository. The `Dockerfile-build` not only runs the app in the container but also builds it using Maven. Check out [the post](https://thepracticaldeveloper.com/2017/12/11/dockerize-spring-boot/) for more details.