From db5aa340714ebeb8a6013d8304f8293f47ff8a4d Mon Sep 17 00:00:00 2001 From: Sunwu Park <52268188+sunwupark@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:55:10 +0900 Subject: [PATCH] :add docker file for deploy --- Dockerfile | 4 ++++ docker-compose.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b9e36c2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:17-alpine +ARG JAR_FILE=build/libs/*.jar +COPY ${JAR_FILE} app_auth.jar +ENTRYPOINT ["java","-jar","/app_auth.jar"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..5e15808 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,18 @@ +version: '3' +services: + web: + container_name: service + image: sunwupark/meme-service + expose: + - 8080 + ports: + - "8080:8080" + + auth: + container_name: auth + image: sunwupark/meme-auth + expose: + - 8081 + ports: + - "8081:8081" +