🔧 Test docker compose

This commit is contained in:
kimjaeyeol
2021-10-26 17:08:14 +09:00
parent 2d192a7c37
commit ee31138c58
24 changed files with 71 additions and 70 deletions

View File

@@ -9,5 +9,5 @@ WORKDIR $APP_HOME
COPY build/libs/*.jar config.jar
# application port
EXPOSE 8888
# 실행 (ARG 아니고 ENV 값이다)
CMD ["java", "-Dspring.profiles.active=${profile:prod}", "-jar", "config.jar"]
# 실행
CMD ["java", "-Dspring.profiles.active=${profile:native}", "-jar", "config.jar"]

View File

@@ -5,13 +5,12 @@ spring:
application:
name: config-service
profiles:
active: native,default # native file repository
active: native # native file repository
cloud:
config:
server:
native:
search-locations: file:///${user.home}/workspace.edu/egovframe-msa-edu/config # Windows
# search-locations: file://${user.home}/workspace.edu/egovframe-msa-edu/config # MacOS
search-locations: file:///usr/app/config # docker
rabbitmq:
host: localhost
port: 5672

View File

@@ -1,2 +1,2 @@
encrypt:
key: egovframe # 대칭키 임의의 값
key: egovframe # 대칭키 임의의 값

View File

@@ -8,12 +8,12 @@
</appender>
<!-- 로컬에서는 로그를 전송하지 않도록 설정 -->
<springProfile name="default">
<springProfile name="native">
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</springProfile>
<springProfile name="!default">
<springProfile name="!native">
<!-- java -Ddestination="localhost:5001" 와 같이 변경할 수 있다. cf 환경에서는 manifest.yml 파일에 환경변수로 추가 -->
<property name="destination" value="${destination:-localhost:5001}" />
<property name="app_name" value="${app_name:-config-server}" />