마이크로서비스 컨테이너화 문서 및 코드 추가

This commit is contained in:
roy-zz
2022-05-05 16:24:22 +09:00
parent 14433becbd
commit dc4a78cd54
27 changed files with 744 additions and 2 deletions

5
config/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM openjdk:17-ea-11-jdk-slim
VOLUME /tmp
COPY encrypt/keystore/encryptionKey.jks encryptionKey.jks
COPY build/libs/config-1.0.jar Config.jar
ENTRYPOINT ["java", "-jar", "Config.jar"]

View File

@@ -1,3 +1,23 @@
plugins {
id 'org.springframework.boot' version '2.6.6'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java-library'
}
sourceCompatibility = 11.0
group = 'com.roy'
version = '1.0'
repositories {
mavenLocal()
mavenCentral()
}
jar {
enabled(true)
}
ext {
set('springCloudVersion', "2021.0.1")
}

View File

@@ -5,7 +5,7 @@ spring:
application:
name: config-service
rabbitmq:
host: 127.0.0.1
host: rabbitmq
port: 5672
username: guest
passowrd: guest

View File

@@ -1,6 +1,7 @@
encrypt:
# key: secretkey123456789
key-store:
location: classpath:keystore/encryptionKey.jks
localtion: file:/encryptionKey.jks
# location: classpath:keystore/encryptionKey.jks
password: 1q2w3e4r
alias: encryptionKey