Create a Dockerfile
for creating a docker image from the Spring Boot Application
FROM openjdk:8 VOLUME /tmp ADD target/springboot-docker-compose.jar springboot-docker-compose.jar EXPOSE 8081 ENTRYPOINT ["java", "-jar", "springboot-docker-compose.jar"]
Create docker-compose.yml `version: '3'
services: springboot-docker-compose-app-container: image: springboot-docker-compose-app:1 build: context: ./ dockerfile: Dockerfile volumes:
Create the Docker image (springboot-docker-compose) and start application using docker compose created in #2.
docker-compose up
Stop docker container
docker-compose down
docker images
docker container ls
docker logs <container_name>
docker container rm <container_name>
docker image rm <image_name>
Ref: https://bezkoder.com/spring-boot-jwt-authentication/
https://www.javatpoint.com/spring-boot-multi-module-project
https://github.com/bezkoder/spring-boot-data-jpa-mysql
https://github.com/Raysmond/SpringBlog
https://github.com/eclipse-ee4j/servlet-api
https://github.com/shivrajjadhav733/springboot-docker-compose
https://github.com/codeforgeyt/airport-management