Skip to content

Commit

Permalink
SB-28 (Feat) : Add Dockerfile
Browse files Browse the repository at this point in the history
SB-28 (Feat) : Add Dockerfile

Docker-Compose ์‚ฌ์šฉ์„ ์œ„ํ•œ Dockerfile ์ถ”๊ฐ€
  • Loading branch information
Jyuung committed Jul 12, 2024
1 parent 42f323e commit 7e21c32
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 25 deletions.
3 changes: 3 additions & 0 deletions db/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM openjdk:17-jdk-slim
ADD /db/build/libs/*.jar db.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/db.jar"]
3 changes: 3 additions & 0 deletions global/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM openjdk:17-jdk-slim
ADD /global/build/libs/*.jar global.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/global.jar"]
3 changes: 3 additions & 0 deletions warehouse/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM openjdk:17-jdk-slim
ADD /warehouse/build/libs/*.jar warehouse.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/warehouse.jar"]
26 changes: 1 addition & 25 deletions warehouse/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
spring:
jpa:
show-sql: true
hibernate:
ddl-auto: validate
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQL8Dialect
datasource:
url: jdbc:mysql://localhost:3306/baobab?useSSL=false&useUnicode=true&allowPublicKeyRetrieval=true
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 1234
file:
upload-dir: /Users/yeongwoonshin/Desktop/Baobab-SERVER/warehouse/src/main/resources/static/images/
path : /images/

jwt:
secret:
key: shinyangjunglee_baobab_passwordkey
access-token:
plus-hour: 1
refresh-token:
plus-hour: 12
temp

0 comments on commit 7e21c32

Please sign in to comment.