aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile4
-rw-r--r--docker-compose.yaml2
-rw-r--r--src/main/java/com/terminaldweller/doc/DocService.java1
3 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 35a9db4..6122c76 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,5 +15,5 @@ RUN gradle bootJar --no-daemon
FROM eclipse-temurin:11-jre-alpine
COPY --from=certbuilder /certs /certs
WORKDIR /springapp
-COPY --from=builder /home/springapp/build/libs/src.jar ./src.jar
-ENTRYPOINT ["java", "-jar", "/springapp/src.jar"]
+COPY --from=builder /home/springapp/build/libs/rtlmd.jar ./rtlmd.jar
+ENTRYPOINT ["java", "-jar", "/springapp/rtlmd.jar"]
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 27bb3d0..dd4939a 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -13,6 +13,8 @@ services:
environment:
- DOCKER_DEPLOYMENT_TYPE=deployment
# restart: unless-stopped
+ depends_on:
+ - postgres
postgres:
image: postgres:14-alpine
networks:
diff --git a/src/main/java/com/terminaldweller/doc/DocService.java b/src/main/java/com/terminaldweller/doc/DocService.java
index 90fd9df..b682087 100644
--- a/src/main/java/com/terminaldweller/doc/DocService.java
+++ b/src/main/java/com/terminaldweller/doc/DocService.java
@@ -17,7 +17,6 @@ public class DocService {
public List<Doc> getDocs() {
return docRepository.findAll();
- // return List.of(new Doc(1L, "loco", 0L));
}
/**