3 Commits
Author SHA1 Message Date
marc 39a32b2023 application.properties for using mongo dns name instead of localhost 2022-12-19 23:56:38 +01:00
marc a5df92eebe Dockerfile that works with .jar 2022-12-19 23:56:03 +01:00
marc d0f398ebc1 mvn entrypoint 2022-12-19 23:37:54 +01:00
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ COPY ./pom.xml ./pom.xml
RUN chmod 755 /app/mvnw
RUN ./mvnw dependency:go-offline -B
RUN ./mvnw package -DskipTests
# RUN ls -al
# ENTRYPOINT ["java","-jar","com.iontech:product-service:0.0.1-SNAPSHOT.jar"]
ENTRYPOINT ["java","-jar","./target/product-service-0.0.1-SNAPSHOT.jar"]
# ENTRYPOINT ["./mvnw", "exec:java", "-Dexec.mainClass=\"com.iontech.product-service.ProductServiceApplication\""]
@@ -1,3 +1,3 @@
spring.data.mongodb.host=localhost
spring.data.mongodb.host=mongo
spring.data.mongodb.port=27017
spring.data.mongodb.database=product-service
spring.data.mongodb.database=product-service