增加正式服务器发布配置
This commit is contained in:
parent
5658ef7ad7
commit
107c5918e0
10
Dockerfile-master
Normal file
10
Dockerfile-master
Normal 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
|
23
src/main/resources/application-master.yml
Normal file
23
src/main/resources/application-master.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user