마이크로서비스 컨테이너화 문서 및 코드 추가
This commit is contained in:
5
config/Dockerfile
Normal file
5
config/Dockerfile
Normal 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"]
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ spring:
|
||||
application:
|
||||
name: config-service
|
||||
rabbitmq:
|
||||
host: 127.0.0.1
|
||||
host: rabbitmq
|
||||
port: 5672
|
||||
username: guest
|
||||
passowrd: guest
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user