From 4fc3fc6dd094ddbfe61980178a8639cf6814f6b7 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Fri, 27 Sep 2024 10:01:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0=E5=A2=9E):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/Dockerfile | 6 ++++-- services/src/main/resources/application-prod.yml | 5 +++++ services/src/main/resources/application.yml | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/services/Dockerfile b/services/Dockerfile index 4b3e1e6..2d7091d 100644 --- a/services/Dockerfile +++ b/services/Dockerfile @@ -17,5 +17,7 @@ COPY target/*.jar /home/bunny/app.jar #启动容器时的进程 ENTRYPOINT ["java","-jar","/home/bunny/app.jar"] -#暴露 8800 端口 -EXPOSE 8800 \ No newline at end of file +#暴露 7070 端口 +EXPOSE 7070 + +# mvn clean package -Pprod -DskipTests0 \ No newline at end of file diff --git a/services/src/main/resources/application-prod.yml b/services/src/main/resources/application-prod.yml index 11b23c3..99308b7 100644 --- a/services/src/main/resources/application-prod.yml +++ b/services/src/main/resources/application-prod.yml @@ -1,3 +1,8 @@ +# 线上禁用文档 +knife4j: + enable: true + production: true + bunny: datasource: host: 192.168.3.98 diff --git a/services/src/main/resources/application.yml b/services/src/main/resources/application.yml index a9fc568..7f63155 100644 --- a/services/src/main/resources/application.yml +++ b/services/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 8800 + port: 7070 spring: profiles: active: dev