Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ ARG JAR_FILE=build/libs/*.jar
# 3. ์œ„์—์„œ ์ •์˜ํ•œ JAR ํŒŒ์ผ์„ ์ปจํ…Œ์ด๋„ˆ์˜ app.jar๋กœ ๋ณต์‚ฌ
COPY ${JAR_FILE} app.jar

COPY src/main/resources/application-prod.yml /app/application-prod.yml

# 4. ์ปจํ…Œ์ด๋„ˆ ์‹œ์ž‘ ์‹œ JAR ํŒŒ์ผ์„ ์‹คํ–‰ํ•˜๋Š” ๋ช…๋ น์–ด
ENTRYPOINT ["java", "-jar", "/app.jar"]

VOLUME /VOLUME_NAME
3 changes: 2 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spring.docker.compose.file=docker-compose.dev.yaml

# MySQL ??
#spring.datasource.url=${DB_URL}
spring.datasource.url=jdbc:mysql://mysql:3306/lawmon
spring.datasource.url=jdbc:mysql://mysql:3306/mysql-lawmon
spring.datasource.username=${DB_USERNAME}
spring.datasource.password=${DB_PASSWORD}

Expand All @@ -22,6 +22,7 @@ spring.jpa.properties.hibernate.format_sql=true
spring.jpa.hibernate.ddl-auto=create
spring.jpa.open-in-view=false


# Swagger ??
springdoc.api-docs.path=/v3/api-docs
springdoc.swagger-ui.path=/swagger-ui/index.html
Expand Down
Loading