add: 添加docker部署信息
This commit is contained in:
parent
bfb9d9fa66
commit
5d965f728a
|
@ -47,4 +47,46 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- 打包跳过单元测试 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<!-- Docker宿主机地址 -->
|
||||
<dockerHost>http://120.46.46.173:2375</dockerHost>
|
||||
<!-- 镜像名字:版本号 -->
|
||||
<imageName>${project.artifactId}:${project.version}</imageName>
|
||||
<!-- true 会覆盖构建相同标签的镜像 -->
|
||||
<forceTags>true</forceTags>
|
||||
<!--指定 Dockerfile 位置-->
|
||||
<dockerDirectory>src/main/docker</dockerDirectory>
|
||||
<!-- 将jar文件从target目录复制到镜像的根目录 -->
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>/</targetPath>
|
||||
<!--指定需要复制的根目录,下面表示target目录-->
|
||||
<directory>${project.build.directory}</directory>
|
||||
<!--指定需要复制的文件,下面指的是打包后的jar包文件-->
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,25 @@
|
|||
# 指定基础镜像
|
||||
# 你的开发环境是jdk8,就使用下面命令
|
||||
FROM openjdk:8-jdk-alpine
|
||||
#FROM registry.cn-hangzhou.aliyuncs.comy/98K/openjdk:8-jdk-alpine
|
||||
# openjdk9 在18年3月分开始不支持了, 支持从11开始,如果说你使用jdk1.9,则使用jdk14
|
||||
# FROM openjdk:14.0-jdk
|
||||
|
||||
# 数据卷,宿主机文件夹挂载到容器
|
||||
VOLUME /tmp
|
||||
|
||||
# 环境变量
|
||||
# 在创建容器时使用 -e 可改变值,如 -e NACOS_SERVER_ADDR=81.68.79.92:8848 -e SPRING_PROFILES_ACTIVE=dev
|
||||
# nacos服务器地址
|
||||
ENV NACOS_SERVER_ADDR=123.249.81.193:8848
|
||||
# 项目环境变量
|
||||
ENV SPRING_PROFILES_ACTIVE=prod
|
||||
|
||||
# 复制文件
|
||||
ADD blog4j-*.jar app.jar
|
||||
|
||||
# Docker容器启动时执行的命令,注意:是 -D 开头。如果有换行,后面要加上英文状态的 \ 进行连接
|
||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar", \
|
||||
"-Dspring.cloud.nacos.discovery.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.cloud.nacos.config.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "/app.jar"]
|
|
@ -28,6 +28,7 @@ spring:
|
|||
max-idle: 10
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
password: 4897458hk
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath:mapper/*.xml
|
|
@ -6,7 +6,7 @@ spring:
|
|||
pathmatch:
|
||||
matching-strategy: ant-path-matcher
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
main:
|
||||
allow-circular-references: true
|
||||
application:
|
||||
|
|
|
@ -43,4 +43,46 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- 打包跳过单元测试 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<!-- Docker宿主机地址 -->
|
||||
<dockerHost>http://120.46.46.173:2375</dockerHost>
|
||||
<!-- 镜像名字:版本号 -->
|
||||
<imageName>${project.artifactId}:${project.version}</imageName>
|
||||
<!-- true 会覆盖构建相同标签的镜像 -->
|
||||
<forceTags>true</forceTags>
|
||||
<!--指定 Dockerfile 位置-->
|
||||
<dockerDirectory>src/main/docker</dockerDirectory>
|
||||
<!-- 将jar文件从target目录复制到镜像的根目录 -->
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>/</targetPath>
|
||||
<!--指定需要复制的根目录,下面表示target目录-->
|
||||
<directory>${project.build.directory}</directory>
|
||||
<!--指定需要复制的文件,下面指的是打包后的jar包文件-->
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,25 @@
|
|||
# 指定基础镜像
|
||||
# 你的开发环境是jdk8,就使用下面命令
|
||||
FROM openjdk:8-jdk-alpine
|
||||
#FROM registry.cn-hangzhou.aliyuncs.comy/98K/openjdk:8-jdk-alpine
|
||||
# openjdk9 在18年3月分开始不支持了, 支持从11开始,如果说你使用jdk1.9,则使用jdk14
|
||||
# FROM openjdk:14.0-jdk
|
||||
|
||||
# 数据卷,宿主机文件夹挂载到容器
|
||||
VOLUME /tmp
|
||||
|
||||
# 环境变量
|
||||
# 在创建容器时使用 -e 可改变值,如 -e NACOS_SERVER_ADDR=81.68.79.92:8848 -e SPRING_PROFILES_ACTIVE=dev
|
||||
# nacos服务器地址
|
||||
ENV NACOS_SERVER_ADDR=123.249.81.193:8848
|
||||
# 项目环境变量
|
||||
ENV SPRING_PROFILES_ACTIVE=prod
|
||||
|
||||
# 复制文件
|
||||
ADD blog4j-*.jar app.jar
|
||||
|
||||
# Docker容器启动时执行的命令,注意:是 -D 开头。如果有换行,后面要加上英文状态的 \ 进行连接
|
||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar", \
|
||||
"-Dspring.cloud.nacos.discovery.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.cloud.nacos.config.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "/app.jar"]
|
|
@ -23,4 +23,5 @@ spring:
|
|||
max-idle: 10
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
password: 4897458hk
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ server:
|
|||
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant-path-matcher
|
||||
|
|
|
@ -48,4 +48,46 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- 打包跳过单元测试 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<!-- Docker宿主机地址 -->
|
||||
<dockerHost>http://120.46.46.173:2375</dockerHost>
|
||||
<!-- 镜像名字:版本号 -->
|
||||
<imageName>${project.artifactId}:${project.version}</imageName>
|
||||
<!-- true 会覆盖构建相同标签的镜像 -->
|
||||
<forceTags>true</forceTags>
|
||||
<!--指定 Dockerfile 位置-->
|
||||
<dockerDirectory>src/main/docker</dockerDirectory>
|
||||
<!-- 将jar文件从target目录复制到镜像的根目录 -->
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>/</targetPath>
|
||||
<!--指定需要复制的根目录,下面表示target目录-->
|
||||
<directory>${project.build.directory}</directory>
|
||||
<!--指定需要复制的文件,下面指的是打包后的jar包文件-->
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,25 @@
|
|||
# 指定基础镜像
|
||||
# 你的开发环境是jdk8,就使用下面命令
|
||||
FROM openjdk:8-jdk-alpine
|
||||
#FROM registry.cn-hangzhou.aliyuncs.comy/98K/openjdk:8-jdk-alpine
|
||||
# openjdk9 在18年3月分开始不支持了, 支持从11开始,如果说你使用jdk1.9,则使用jdk14
|
||||
# FROM openjdk:14.0-jdk
|
||||
|
||||
# 数据卷,宿主机文件夹挂载到容器
|
||||
VOLUME /tmp
|
||||
|
||||
# 环境变量
|
||||
# 在创建容器时使用 -e 可改变值,如 -e NACOS_SERVER_ADDR=81.68.79.92:8848 -e SPRING_PROFILES_ACTIVE=dev
|
||||
# nacos服务器地址
|
||||
ENV NACOS_SERVER_ADDR=123.249.81.193:8848
|
||||
# 项目环境变量
|
||||
ENV SPRING_PROFILES_ACTIVE=prod
|
||||
|
||||
# 复制文件
|
||||
ADD blog4j-*.jar app.jar
|
||||
|
||||
# Docker容器启动时执行的命令,注意:是 -D 开头。如果有换行,后面要加上英文状态的 \ 进行连接
|
||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar", \
|
||||
"-Dspring.cloud.nacos.discovery.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.cloud.nacos.config.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "/app.jar"]
|
|
@ -1,36 +1,41 @@
|
|||
blog4j:
|
||||
prod:
|
||||
host: 120.46.46.173
|
||||
nacos_host: 123.249.81.193
|
||||
|
||||
spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 123.249.81.193:8848
|
||||
server-addr: ${blog4j.prod.nacos_host}:8848
|
||||
gateway:
|
||||
routes:
|
||||
- id: auth_route
|
||||
uri: http://120.46.46.173:9000/
|
||||
uri: http://${blog4j.prod.host}:9000/
|
||||
predicates:
|
||||
- Path=/auth/**
|
||||
filters:
|
||||
- RewritePath=/auth/(?<segment>.*),/$\{segment}
|
||||
- id: user_route
|
||||
uri: http://120.46.46.173:9100/
|
||||
uri: http://${blog4j.prod.host}:9100/
|
||||
predicates:
|
||||
- Path=/user/**
|
||||
filters:
|
||||
- RewritePath=/user/(?<segment>.*),/$\{segment}
|
||||
- id: article_route
|
||||
uri: http://120.46.46.173:9200/
|
||||
uri: http://${blog4j.prod.host}:9200/
|
||||
predicates:
|
||||
- Path=/article/**
|
||||
filters:
|
||||
- RewritePath=/article/(?<segment>.*),/$\{segment}
|
||||
- id: system_route
|
||||
uri: http://120.46.46.173:9400/
|
||||
uri: http://${blog4j.prod.host}:9400/
|
||||
predicates:
|
||||
- Path=/system/**
|
||||
filters:
|
||||
- RewritePath=/system/(?<segment>.*),/$\{segment}
|
||||
- id: server_route
|
||||
uri: http://120.46.46.173:9500/
|
||||
uri: http://${blog4j.prod.host}:9500/
|
||||
predicates:
|
||||
- Path=/server/**
|
||||
filters:
|
||||
|
|
|
@ -5,4 +5,4 @@ spring:
|
|||
application:
|
||||
name: blog4j-gateway
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
|
@ -48,4 +48,46 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- 打包跳过单元测试 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<!-- Docker宿主机地址 -->
|
||||
<dockerHost>http://120.46.46.173:2375</dockerHost>
|
||||
<!-- 镜像名字:版本号 -->
|
||||
<imageName>${project.artifactId}:${project.version}</imageName>
|
||||
<!-- true 会覆盖构建相同标签的镜像 -->
|
||||
<forceTags>true</forceTags>
|
||||
<!--指定 Dockerfile 位置-->
|
||||
<dockerDirectory>src/main/docker</dockerDirectory>
|
||||
<!-- 将jar文件从target目录复制到镜像的根目录 -->
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>/</targetPath>
|
||||
<!--指定需要复制的根目录,下面表示target目录-->
|
||||
<directory>${project.build.directory}</directory>
|
||||
<!--指定需要复制的文件,下面指的是打包后的jar包文件-->
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,25 @@
|
|||
# 指定基础镜像
|
||||
# 你的开发环境是jdk8,就使用下面命令
|
||||
FROM openjdk:8-jdk-alpine
|
||||
#FROM registry.cn-hangzhou.aliyuncs.comy/98K/openjdk:8-jdk-alpine
|
||||
# openjdk9 在18年3月分开始不支持了, 支持从11开始,如果说你使用jdk1.9,则使用jdk14
|
||||
# FROM openjdk:14.0-jdk
|
||||
|
||||
# 数据卷,宿主机文件夹挂载到容器
|
||||
VOLUME /tmp
|
||||
|
||||
# 环境变量
|
||||
# 在创建容器时使用 -e 可改变值,如 -e NACOS_SERVER_ADDR=81.68.79.92:8848 -e SPRING_PROFILES_ACTIVE=dev
|
||||
# nacos服务器地址
|
||||
ENV NACOS_SERVER_ADDR=123.249.81.193:8848
|
||||
# 项目环境变量
|
||||
ENV SPRING_PROFILES_ACTIVE=prod
|
||||
|
||||
# 复制文件
|
||||
ADD blog4j-*.jar app.jar
|
||||
|
||||
# Docker容器启动时执行的命令,注意:是 -D 开头。如果有换行,后面要加上英文状态的 \ 进行连接
|
||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar", \
|
||||
"-Dspring.cloud.nacos.discovery.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.cloud.nacos.config.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "/app.jar"]
|
|
@ -27,4 +27,5 @@ spring:
|
|||
# 连接池中的最大空闲连接
|
||||
max-idle: 10
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
min-idle: 0
|
||||
password: 4897458hk
|
|
@ -8,7 +8,7 @@ spring:
|
|||
application:
|
||||
name: blog4j-server
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
mail:
|
||||
host: smtp.qq.com #邮件服务器地址
|
||||
port: 465
|
||||
|
|
|
@ -43,4 +43,46 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!-- 打包跳过单元测试 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.spotify</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<configuration>
|
||||
<!-- Docker宿主机地址 -->
|
||||
<dockerHost>http://120.46.46.173:2375</dockerHost>
|
||||
<!-- 镜像名字:版本号 -->
|
||||
<imageName>${project.artifactId}:${project.version}</imageName>
|
||||
<!-- true 会覆盖构建相同标签的镜像 -->
|
||||
<forceTags>true</forceTags>
|
||||
<!--指定 Dockerfile 位置-->
|
||||
<dockerDirectory>src/main/docker</dockerDirectory>
|
||||
<!-- 将jar文件从target目录复制到镜像的根目录 -->
|
||||
<resources>
|
||||
<resource>
|
||||
<targetPath>/</targetPath>
|
||||
<!--指定需要复制的根目录,下面表示target目录-->
|
||||
<directory>${project.build.directory}</directory>
|
||||
<!--指定需要复制的文件,下面指的是打包后的jar包文件-->
|
||||
<include>${project.build.finalName}.jar</include>
|
||||
</resource>
|
||||
</resources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,25 @@
|
|||
# 指定基础镜像
|
||||
# 你的开发环境是jdk8,就使用下面命令
|
||||
FROM openjdk:8-jdk-alpine
|
||||
#FROM registry.cn-hangzhou.aliyuncs.comy/98K/openjdk:8-jdk-alpine
|
||||
# openjdk9 在18年3月分开始不支持了, 支持从11开始,如果说你使用jdk1.9,则使用jdk14
|
||||
# FROM openjdk:14.0-jdk
|
||||
|
||||
# 数据卷,宿主机文件夹挂载到容器
|
||||
VOLUME /tmp
|
||||
|
||||
# 环境变量
|
||||
# 在创建容器时使用 -e 可改变值,如 -e NACOS_SERVER_ADDR=81.68.79.92:8848 -e SPRING_PROFILES_ACTIVE=dev
|
||||
# nacos服务器地址
|
||||
ENV NACOS_SERVER_ADDR=123.249.81.193:8848
|
||||
# 项目环境变量
|
||||
ENV SPRING_PROFILES_ACTIVE=prod
|
||||
|
||||
# 复制文件
|
||||
ADD blog4j-*.jar app.jar
|
||||
|
||||
# Docker容器启动时执行的命令,注意:是 -D 开头。如果有换行,后面要加上英文状态的 \ 进行连接
|
||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar", \
|
||||
"-Dspring.cloud.nacos.discovery.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.cloud.nacos.config.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "/app.jar"]
|
|
@ -28,3 +28,4 @@ spring:
|
|||
max-idle: 10
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
password: 4897458hk
|
||||
|
|
|
@ -3,7 +3,7 @@ server:
|
|||
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
cache:
|
||||
type: redis
|
||||
redis:
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
# 指定基础镜像
|
||||
# 你的开发环境是jdk8,就使用下面命令
|
||||
FROM openjdk:8-jdk-alpine
|
||||
#FROM registry.cn-hangzhou.aliyuncs.comy/98K/openjdk:8-jdk-alpine
|
||||
# openjdk9 在18年3月分开始不支持了, 支持从11开始,如果说你使用jdk1.9,则使用jdk14
|
||||
# FROM openjdk:14.0-jdk
|
||||
|
||||
# 数据卷,宿主机文件夹挂载到容器
|
||||
VOLUME /tmp
|
||||
|
||||
# 环境变量
|
||||
# 在创建容器时使用 -e 可改变值,如 -e NACOS_SERVER_ADDR=81.68.79.92:8848 -e SPRING_PROFILES_ACTIVE=dev
|
||||
# nacos服务器地址
|
||||
ENV NACOS_SERVER_ADDR=123.249.81.193:8848
|
||||
# 项目环境变量
|
||||
ENV SPRING_PROFILES_ACTIVE=prod
|
||||
|
||||
# 复制文件
|
||||
ADD blog4j-*.jar app.jar
|
||||
|
||||
# Docker容器启动时执行的命令,注意:是 -D 开头。如果有换行,后面要加上英文状态的 \ 进行连接
|
||||
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar", \
|
||||
"-Dspring.cloud.nacos.discovery.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.cloud.nacos.config.serverAddr=${NACOS_SERVER_ADDR}", \
|
||||
"-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}", "/app.jar"]
|
|
@ -27,4 +27,5 @@ spring:
|
|||
# 连接池中的最大空闲连接
|
||||
max-idle: 10
|
||||
# 连接池中的最小空闲连接
|
||||
min-idle: 0
|
||||
min-idle: 0
|
||||
password: 4897458hk
|
|
@ -3,7 +3,7 @@ server:
|
|||
|
||||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
main:
|
||||
allow-circular-references: true
|
||||
application:
|
||||
|
|
Loading…
Reference in New Issue