readiness
This commit is contained in:
parent
392360c69e
commit
5b9cbe7e62
|
@ -53,12 +53,7 @@ services:
|
||||||
- CONSUL_ENABLE_UI=true
|
- CONSUL_ENABLE_UI=true
|
||||||
- CONSUL_HTTP_PORT_NUMBER=8500
|
- CONSUL_HTTP_PORT_NUMBER=8500
|
||||||
ports:
|
ports:
|
||||||
- '8300:8300'
|
|
||||||
- '8301:8301'
|
|
||||||
- '8301:8301/udp'
|
|
||||||
- '8500:8500'
|
- '8500:8500'
|
||||||
- '8600:8600'
|
|
||||||
- '8600:8600/udp'
|
|
||||||
volumes:
|
volumes:
|
||||||
- d:/docker-data/consul:/bitnami/consul
|
- d:/docker-data/consul:/bitnami/consul
|
||||||
|
|
||||||
|
@ -90,7 +85,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- y9-share-net
|
- y9-share-net
|
||||||
ports:
|
ports:
|
||||||
- "9092:9092"
|
#- "9092:9092"
|
||||||
- "9094:9094"
|
- "9094:9094"
|
||||||
environment:
|
environment:
|
||||||
- KAFKA_CFG_NODE_ID=0
|
- KAFKA_CFG_NODE_ID=0
|
||||||
|
|
7
pom.xml
7
pom.xml
|
@ -6,7 +6,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.2.0-RC2</version>
|
<version>3.2.0</version>
|
||||||
<relativePath /> <!-- lookup parent from repository -->
|
<relativePath /> <!-- lookup parent from repository -->
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>net.risesoft</groupId>
|
<groupId>net.risesoft</groupId>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
<spring-cloud.version>2023.0.0-RC1</spring-cloud.version>
|
<spring-cloud.version>2023.0.0-RC1</spring-cloud.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencyManagement>
|
<!--<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>-->
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@ -98,6 +98,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-consul-discovery</artifactId>
|
<artifactId>spring-cloud-starter-consul-discovery</artifactId>
|
||||||
|
<version>4.0.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -30,6 +30,8 @@ spring:
|
||||||
application:
|
application:
|
||||||
name: demo01
|
name: demo01
|
||||||
cloud:
|
cloud:
|
||||||
|
compatibility-verifier:
|
||||||
|
enabled: false
|
||||||
consul:
|
consul:
|
||||||
host: host.docker.internal
|
host: host.docker.internal
|
||||||
port: 8500
|
port: 8500
|
||||||
|
@ -68,3 +70,7 @@ spring:
|
||||||
compose:
|
compose:
|
||||||
enabled: true
|
enabled: true
|
||||||
file: compose-dev.yml
|
file: compose-dev.yml
|
||||||
|
readiness:
|
||||||
|
#wait: NEVER
|
||||||
|
wait: ONLY_IF_STARTED
|
||||||
|
#wait: ALWAYS
|
||||||
|
|
Loading…
Reference in New Issue