-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |