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