diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2d5b3cd..21f1f7b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -58,6 +58,7 @@ jobs: --name piroin-backend \ --restart unless-stopped \ -p 8080:8080 \ + -v piroin-uploads:/app/uploads \ --health-cmd="curl -f http://localhost:8080/actuator/health || exit 1" \ --health-interval=30s \ --health-timeout=10s \ diff --git a/backend/Dockerfile b/backend/Dockerfile index f7d2e4a..c549523 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,4 +4,6 @@ WORKDIR /app COPY build/libs/*.jar app.jar +VOLUME /app/uploads + ENTRYPOINT ["java", "-Duser.timezone=Asia/Seoul", "-jar", "app.jar"] \ No newline at end of file