This commit is contained in:
Marcel 2021-10-17 16:51:28 +02:00
parent 009e4b219d
commit e260df0de2
2 changed files with 2 additions and 20 deletions

View File

@ -31,7 +31,7 @@ services:
dockerfile: "Dockerfile" dockerfile: "Dockerfile"
target: development target: development
ports: ports:
- "8083:8081" - "8083:8083"
- "5007:5005" - "5007:5005"
volumes: volumes:
- ./executor-pool/src:/opt/app/src - ./executor-pool/src:/opt/app/src
@ -43,7 +43,7 @@ services:
dockerfile: "Dockerfile" dockerfile: "Dockerfile"
target: development target: development
ports: ports:
- "8084:8081" - "8084:8084"
- "5008:5005" - "5008:5005"
volumes: volumes:
- ./executor1/src:/opt/app/src - ./executor1/src:/opt/app/src

View File

@ -1,18 +0,0 @@
FROM openjdk:11 AS development
WORKDIR /opt/app
# ENV SPRING_DATASOURCE_URL=jdbc:mysql://backend-db:3306/db
COPY .mvn/ .mvn
COPY mvnw pom.xml mvnw.cmd ./
RUN apt-get clean && apt-get update && apt-get install dos2unix
RUN dos2unix mvnw
RUN ./mvnw dependency:go-offline
COPY src /opt/app/src
COPY *target /opt/app/target
CMD ["./mvnw", "spring-boot:run", "-Dspring-boot.run.jvmArguments=\"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005\"", "-Dspring.devtools.restart.enabled=true"]