修改配置文件,修改Dockerfile

This commit is contained in:
WenG 2021-12-27 22:22:42 +08:00
parent 875497678e
commit f5694d4d5c
2 changed files with 2 additions and 7 deletions

View File

@ -3,11 +3,6 @@ ARG JAR_FILE=/target/*.jar
COPY ${JAR_FILE} smart-city-usercenter.jar COPY ${JAR_FILE} smart-city-usercenter.jar
ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/smart-city-usercenter.jar"] ENTRYPOINT ["java","-jar","-Dspring.profiles.active=prod","/smart-city-usercenter.jar"]
ENV TZ 'Asia/Shanghai'
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# 时区问题 # 时区问题
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

View File

@ -1,7 +1,7 @@
server: server:
port: 7011 port: 7011
ip: 1.24.238.149 ip: 1.24.238.149
url: http://${server.ip}:37210/usercenter url: http://1.24.238.149:37210/usercenter
system-title: 统一用户管理系统 system-title: 统一用户管理系统
system-sub-title: 智慧城市 system-sub-title: 智慧城市
default-index-page: route/custom/index default-index-page: route/custom/index
@ -135,7 +135,7 @@ sms:
verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。' verification-code: '{sign} 您的验证码为 {content}, 有效时间为120秒若非本人操作请忽略。'
logging: logging:
enable-api-log: true enable-api-log: false
file: file:
name: /project/logs/usercenter-logs.log name: /project/logs/usercenter-logs.log
level: level: