Multiple instances started

multiple-instantces
atancito 2022-10-02 16:53:40 +02:00
parent 5c8623a937
commit 293fa11386
4 changed files with 12 additions and 10 deletions

View File

@ -1,10 +1,10 @@
server: server:
port: 8003 port: ${PORT:${SERVER_PORT:0}}
eureka: eureka:
client: client:
fetch-registry: true fetch-registry: true
register-with-eureka: true register-with-eureka: true
service-url: service-url:
default-zone: http://localhost:8761/eureka default-zone: http://localhost:8761/eureka
instance: instance:
hostname: localhost instance-in: ${spring.application.name}:${spring.application.instance_id:${random.value}}

View File

@ -1,10 +1,10 @@
server: server:
port: 8002 port: ${PORT:${SERVER_PORT:0}}
eureka: eureka:
client: client:
fetch-registry: true fetch-registry: true
register-with-eureka: true register-with-eureka: true
service-url: service-url:
default-zone: http://localhost:8761/eureka default-zone: http://localhost:8761/eureka
instance: instance:
hostname: localhost instance-in: ${spring.application.name}:${spring.application.instance_id:${random.value}}

View File

@ -4,3 +4,5 @@ eureka:
client: client:
fetch-registry: false fetch-registry: false
register-with-eureka: false register-with-eureka: false
service-url:
default-zone: http://${eureka.instance.hostname}:${server.port}/eureka/

View File

@ -1,10 +1,10 @@
server: server:
port: 8001 port: ${PORT:${SERVER_PORT:0}}
eureka: eureka:
client: client:
fetch-registry: true fetch-registry: true
register-with-eureka: true register-with-eureka: true
service-url: service-url:
default-zone: http://localhost:8761/eureka default-zone: http://localhost:8761/eureka
instance: instance:
hostname: localhost instance-in: ${spring.application.name}:${spring.application.instance_id:${random.value}}