diff --git a/Dockerfile-master b/Dockerfile-master new file mode 100644 index 0000000..dce5753 --- /dev/null +++ b/Dockerfile-master @@ -0,0 +1,10 @@ +FROM openjdk:17 + +ADD target/xian-ncc-da-0.1.jar xian-ncc-da.jar + +EXPOSE 9081 + +ENV TZ=Asia/Shanghai +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone + +CMD java -jar -Dfile.encoding=UTF-8 -Dspring.profiles.active=master /xian-ncc-da.jar diff --git a/src/main/resources/application-master.yml b/src/main/resources/application-master.yml new file mode 100644 index 0000000..81d7093 --- /dev/null +++ b/src/main/resources/application-master.yml @@ -0,0 +1,23 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://192.168.0.169:3306/xian-ncc-da?useSSL=false&characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true + username: root + password: joylink@0503 +spring-doc: + packages-to-scan: club.joylink.xiannccda.controller + swagger-ui: + enabled: false + api-docs: + enabled: false +logging: + file: + path: /logs/xiannccda + level: + root: "info" + +occ: + host: localhost + realPort: 5603 + unRealPort: 5703 + lineId: 3