Skip to content

Commit

Permalink
feat: application yml secret files + docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Nov 20, 2024
1 parent 191e0ad commit bd3cfcd
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM openjdk:21
ARG JAR_FILE=api-service/build/libs/api-service.jar
COPY ${JAR_FILE} ./app.jar
ENV TZ=Asia/Seoul
ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-jar", "./app.jar"]
Empty file.
25 changes: 25 additions & 0 deletions api-service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
spring:
profiles:
active: prod

servlet:
multipart:
max-file-size: 20MB
max-request-size: 20MB
---
spring:
config:
activate:
on-profile: prod
import: application-prod.yml, application-oauth.yml, application-redis.yml

---
spring:
config:
activate:
on-profile: prod
import: application-prod.yml, application-oauth.yml, application-redis.yml


server:
port: 8080
Empty file added docker-compose.yml
Empty file.
1 change: 1 addition & 0 deletions domain/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spring.application.name=domain
Empty file.
Empty file.

0 comments on commit bd3cfcd

Please sign in to comment.