forked from geoserver/geoserver-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-discovery-ha.yml
58 lines (52 loc) · 1.99 KB
/
docker-compose-discovery-ha.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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
environment:
EUREKA_INSTANCE_HOSTNAME: discovery-1
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://discovery-2:8761/eureka
discovery2:
image: geoservercloud/geoserver-cloud-discovery:${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: geoservercloud/geoserver-cloud-config:${TAG}
depends_on:
- discovery
- discovery2
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
gateway:
environment:
EUREKA_SERVER_URL: http://discovery-1:8761/eureka, http://discovery-2:8761/eureka
#catalog:
# 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