1 Star 1 Fork 1

GeoServer/geoserver-cloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose-discovery-ha.yml 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/geo-server/geoserver-cloud.git
git@gitee.com:geo-server/geoserver-cloud.git
geo-server
geoserver-cloud
geoserver-cloud
0.1.x

搜索帮助

0d507c66 1850385 C8b1a773 1850385