docker-compose-spring-boot-mysql
docker-compose-spring-boot-mysql copied to clipboard
Dockerize Spring Boot and MySQL example - using Docker Compose to connect Spring Boot to MySQL
Dear, Writer I face the problem of this: when i compare to your deployment, its load a .dockerignore that i cant find. may i know how to solve?
keep getting below error after cloning the repo and run docker-compose up. are you able to run it successfully on local? thanks. ``` ring-orm-5.2.1.RELEASE.jar:5.2.1.RELEASE] docker-compose-spring-boot-mysql-app-1 | ... 20 common frames...
We dont need to copy everything onto the container.
# FROM maven:3.8.5-openjdk-17 # for Java 17 FROM maven:3.8.2-jdk-8 WORKDIR /bezkoder-app COPY . . RUN mvn clean install CMD mvn spring-boot:run