代码拉取完成,页面将自动刷新
version: "3.8"
services:
# Eureka service discovery. This is a Discovery First Bootstrap configuration.
# Since the discovery service are fixed entry points, we're setting up two peer aware eureka instances for HA.
# Browse to http://localhost:8761 and http://localhost:8762 to verify they see each
# other and all services are registered at both eureka instances.
# See http://cloud.spring.io/spring-cloud-static/spring-cloud.html#_peer_awareness
discovery:
container_name: discovery-1
environment:
EUREKA_INSTANCE_HOSTNAME: discovery-1
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery-2:8761/eureka
discovery2:
image: org.geoserver.cloud/gs-cloud-discovery-service:${TAG}
container_name: discovery-2
environment:
SERVER_PORT: 8761
EUREKA_INSTANCE_HOSTNAME: discovery-2
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery-1:8761/eureka
JAVA_OPTS: ${DISCOVERY_JAVA_OPTS}
ports:
- 8762:8761
networks:
- gs-cloud-network
config:
image: org.geoserver.cloud/gs-cloud-config-service:${TAG}
depends_on:
- discovery
- discovery2
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
# wait until both discovery services are available
command: dockerize -wait http://discovery-1:8761/actuator/health -wait http://discovery-2:8761/actuator/health --timeout 15s java ${CONFIG_JAVA_OPTS} -jar /opt/app/config-service.jar
gateway:
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
wfs:
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
wms:
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
wcs:
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
# wps:
# environment:
# EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
rest:
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。