spring: application: name: gateway config: # Fail fast if the config server is not up: a service with the wrong config is worse than no service. import: "configserver:${CONFIG_URL:http://localhost:8888}" server: port: 8080 eureka: client: service-url: defaultZone: ${EUREKA_URL:http://localhost:8761/eureka} instance: hostname: ${EUREKA_HOSTNAME:localhost} # Register the service name + port as the instance id so two copies of one service do not collide. instance-id: ${spring.application.name}:${server.port}