Răsfoiți Sursa

文件清理

chenzl 10 luni în urmă
părinte
comite
cfb01f437d
2 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 2 1
      DockerfileProd
  2. 1 1
      prod-compose.yml

+ 2 - 1
DockerfileProd

@@ -30,5 +30,6 @@ ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-4.4.0-SNAPSHOT/bin
 ENV KK_OFFICE_HOME=/opt/libreoffice7.6
 ENV KK_TRUST_HOST=cdn.uxianxin.com,fresh-life.oss-cn-shanghai.aliyuncs.com,file.uxianxin.com
 ENV KK_BASE_URL=https://file.uxianxin.com
+ENV KK_SERVER_PORT=8012
 # 容器的入口,启动后需要执行的程序
-ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Dspring.config.location=/opt/kkFileView-4.4.0-SNAPSHOT/config/application.properties","-jar","/opt/kkFileView-4.4.0-SNAPSHOT/bin/kkFileView-4.4.0-SNAPSHOT.jar"]
+ENTRYPOINT ["java","-Dfile.encoding=UTF-8","-Xms512m","-Xmx2048m","-Duser.timezone=GMT+8","-Dspring.config.location=/opt/kkFileView-4.4.0-SNAPSHOT/config/application.properties","-jar","/opt/kkFileView-4.4.0-SNAPSHOT/bin/kkFileView-4.4.0-SNAPSHOT.jar"]

+ 1 - 1
prod-compose.yml

@@ -3,7 +3,7 @@ services:
 
   file-preview:
     # 指定容器名称
-    container_name: file-preview
+    container_name: file-view
     # 重启机制
     restart: always
     network_mode: "host"