[英]Can I use a shared jhipster-registry and uaa in a remote server (Docker) and developers connect to it as a service?
In a development team, we are working on a jhipster microservice project with Uaa, Jh-registry, mic 1, mic 2 and gateway.在一个开发团队中,我们正在与 Uaa、Jh-registry、mic 1、mic 2 和 gateway 一起开发 jhipster 微服务项目。
The question here is it possible to deploy shared Uaa and Jh-registry in a remote server using Docker and other developers on either mic 1 and mic 2 use them as a service?这里的问题是是否可以使用 Docker 在远程服务器中部署共享的 Uaa 和 Jh 注册表,麦克风 1 和麦克风 2 上的其他开发人员将它们用作服务?
If the answer is yes, is there any config or inspiration sample available?如果答案是肯定的,是否有可用的配置或灵感示例?
The answer is yes and there's very little to do, just edit the src/main/resources/config/bootstrap.yml
file of your gateway, uaa and microservices so that they point to the registry url for config:答案是肯定的,而且几乎没有什么可做的,只需编辑网关、uaa 和微服务的
src/main/resources/config/bootstrap.yml
文件,以便它们指向用于配置的注册表 URL:
spring:
...
cloud:
config:
fail-fast: false # if not in "prod" profile, do not force to use Spring Cloud Config
uri: http://admin:${jhipster.registry.password}@my-registry.example.com:8761/config
And then for Eureka server url, edit application*.yml
in applications and registry to change defaultZone
然后对于 Eureka 服务器 url,在应用程序和注册表中编辑
application*.yml
以更改defaultZone
eureka:
...
client:
service-url:
defaultZone: http://admin:${jhipster.registry.password}@my-registry.example.com:8761/eureka/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.