增加正式服务器发布配置

This commit is contained in:
joylink_zhangsai 2023-07-27 10:39:25 +08:00
parent 5658ef7ad7
commit 107c5918e0
2 changed files with 33 additions and 0 deletions

10
Dockerfile-master Normal file
View File

@ -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

View File

@ -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