From d01df3a8c4e3d0512addcce5ae9dcb5457b487fd Mon Sep 17 00:00:00 2001 From: huGgW Date: Sat, 2 Sep 2023 16:19:17 +0900 Subject: [PATCH] CICD: Add volumes to mount with server directory. (for attachment) --- docker-compose-backend.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose-backend.yml b/docker-compose-backend.yml index 344c10be..1b05cc27 100644 --- a/docker-compose-backend.yml +++ b/docker-compose-backend.yml @@ -7,6 +7,9 @@ services: PROFILE: ${PROFILE} ports: - 8080:8080 + volumes: + - ./mainImage:/app/mainImage + - ./attachment:/app/attachment environment: SPRING_DATASOURCE_URL: "jdbc:mysql://host.docker.internal:3306/${MYSQL_DATABASE}?serverTimezone=Asia/Seoul&useSSL=false&allowPublicKeyRetrieval=true" SPRING_DATASOURCE_USERNAME: ${MYSQL_USER} @@ -25,6 +28,9 @@ services: # PROFILE: ${PROFILE} # ports: # - 8081:8080 +# volumes: +# - ./mainImage:/app/mainImage +# - ./attachment:/app/attachment # environment: # SPRING_DATASOURCE_URL: "jdbc:mysql://host.docker.internal:3306/${MYSQL_DATABASE}?serverTimezone=Asia/Seoul&useSSL=false&allowPublicKeyRetrieval=true" # SPRING_DATASOURCE_USERNAME: ${MYSQL_USER}