Commit 2a9c644b by huluobin

build docker

parent 11d9f265
......@@ -355,7 +355,7 @@
<version>0.4.13</version>
<configuration>
<!--镜像名称:镜像版本-->
<imageName>${project.artifactId}:${project.version}</imageName>
<imageName>${project.artifactId}-${spring.profiles.active}:${project.version}</imageName>
<!--基础镜像jdk1.8-->
<baseImage>openjdk:8-jdk-alpine</baseImage>
<!--镜像作者-->
......@@ -371,8 +371,20 @@
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://134.175.167.230:2375</dockerHost>
<!--发布镜像的机器-->
<dockerHost>http://94.191.67.240:2375</dockerHost>
</configuration>
<executions>
<!--当执行mvn package时 执行mvn package docker :build-->
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
......
......@@ -44,7 +44,7 @@ spring:
#redis配置
redis:
host: 127.0.0.1
host: host.docker.internal
port: 6379
database: 0
lettuce:
......
......@@ -44,7 +44,7 @@ spring:
#redis配置
redis:
host: 127.0.0.1
host: host.docker.internal
port: 6379
database: 0
lettuce:
......
......@@ -44,8 +44,8 @@ spring:
#redis配置
redis:
host: 127.0.0.1
port: 6379
host: host.docker.internal
port: 6378
database: 0
lettuce:
pool:
......
......@@ -44,7 +44,7 @@ spring:
#redis配置
redis:
host: 127.0.0.1
host: host.docker.internal
port: 6379
database: 0
lettuce:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment