Skip to content

Commit

Permalink
HOTFIX: 개발 환경 분리를 위한 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hyxklee committed Oct 5, 2024
1 parent 0f3c899 commit 033d8f6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# open jdk 17 버전의 alpine 리눅스 환경을 구성
FROM openjdk:17-alpine

# build가 되는 시점에 JAR_FILE이라는 변수 명에 build/libs/*.jar 선언
# build/libs - gradle로 빌드했을 때 jar 파일이 생성되는 경로
ARG JAR_FILE=build/libs/*.jar

# JAR_FILE을 app.jar로 복사
COPY ${JAR_FILE} docker-springboot.jar

# 운영 및 개발에서 사용되는 환경 설정을 분리
ENTRYPOINT ["java", "-jar", "-Dspring.profiles.active=dev", "/docker-springboot.jar"]
File renamed without changes.
34 changes: 34 additions & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
spring:
datasource:
url: ${DB_URL}
username: ${RDS_USER_NAME}
password: ${RDS_USER_PW}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
show-sql: true
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
hibernate:
ddl-auto: update
weeth:
jwt:
key: ${JWT_KEY}
access:
expiration: ${ACCESS_EXP}
header: ${ACCESS_HEAD}
refresh:
expiration: ${REFRESH_EXP}
header: ${REFRESH_HEAD}
cloud:
aws:
s3:
bucket: ${S3_BUCKET}
credentials:
access-key: ${S3_ACCESS_KEY}
secret-key: ${S3_SECRET_KEY}
region:
static: ap-northeast-2
auto: false
stack:
auto: false

0 comments on commit 033d8f6

Please sign in to comment.