From 107c5918e0f017c4cdb45649b9e1e79d58f3e099 Mon Sep 17 00:00:00 2001 From: joylink_zhangsai <1021828630@qq.com> Date: Thu, 27 Jul 2023 10:39:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=AD=A3=E5=BC=8F=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E5=8F=91=E5=B8=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile-master | 10 ++++++++++ src/main/resources/application-master.yml | 23 +++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 Dockerfile-master create mode 100644 src/main/resources/application-master.yml 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