skip to Main Content

Exit status 1 while running docker compose of spring boot application with mysql db

I am trying to docrize an application of spring boot which also utilizes a mysql db also Below is the docker file FROM maven:3.8.3-openjdk-17 AS build EXPOSE 8081 ADD /target/oks-0.0.1-SNAPSHOT.jar oks-0.0.1-SNAPSHOT.jar ENTRYPOINT ["java","-jar","oks-0.0.1-SNAPSHOT.jar"] The application-develop.properties is below spring.datasource.url=jdbc:mysql://localhosts:3306/oks?useUnicode=true&characterEncoding=utf8 spring.datasource.username=root spring.datasource.password…

VIEW QUESTION
Back To Top
Search