-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (55 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
62 lines (55 loc) · 1.41 KB
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
59
60
61
version: '2.2'
services:
registry-0:
image: shuaicj/cloud-registry:1.2.0
hostname: registry-0
environment:
PORT: 8761
REGISTRY_SERVICE_HA: "true"
REGISTRY_SERVICE_URL: http://registry-0:8761/eureka,http://registry-1:8761/eureka
expose:
- 8761
ports:
- 8761:8761
registry-1:
image: shuaicj/cloud-registry:1.2.0
hostname: registry-1
environment:
PORT: 8761
REGISTRY_SERVICE_HA: "true"
REGISTRY_SERVICE_URL: http://registry-0:8761/eureka,http://registry-1:8761/eureka
expose:
- 8761
config:
image: shuaicj/cloud-config:1.2.0
scale: 2
environment:
PORT: 8888
REGISTRY_SERVICE_URL: http://registry-0:8761/eureka,http://registry-1:8761/eureka
expose:
- 8888
gateway:
image: shuaicj/cloud-gateway:1.2.0
environment:
PORT: 8080
REGISTRY_SERVICE_URL: http://registry-0:8761/eureka,http://registry-1:8761/eureka
ports:
- 8080:8080
expose:
- 8080
service-a:
image: shuaicj/cloud-service-a:1.2.0
scale: 2
environment:
PORT: 8080
REGISTRY_SERVICE_URL: http://registry-0:8761/eureka,http://registry-1:8761/eureka
expose:
- 8080
service-b:
image: shuaicj/cloud-service-b:1.2.0
scale: 2
environment:
PORT: 8080
REGISTRY_SERVICE_URL: http://registry-0:8761/eureka,http://registry-1:8761/eureka
expose:
- 8080