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:
port: 8003
port: ${PORT:${SERVER_PORT:0}}
eureka:
client:
fetch-registry: true
register-with-eureka: true
service-url:
default-zone: http://localhost:8761/eureka
instance:
hostname: localhost
instance:
instance-in: ${spring.application.name}:${spring.application.instance_id:${random.value}}

View File

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

View File

@ -3,4 +3,6 @@ server:
eureka:
client:
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:
port: 8001
port: ${PORT:${SERVER_PORT:0}}
eureka:
client:
fetch-registry: true
register-with-eureka: true
service-url:
default-zone: http://localhost:8761/eureka
instance:
hostname: localhost
instance:
instance-in: ${spring.application.name}:${spring.application.instance_id:${random.value}}