-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (79 loc) · 1.8 KB
/
docker-compose.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3.8"
services:
zookeeper:
container_name: zookeeper
image: zookeeper:3.4.9
ports:
- "2181:2181"
restart: always
networks:
- dubbo-net
dubbo-provider-1-0:
container_name: dubbo-provider-1-0
depends_on:
- zookeeper
image: dubbo-provider-1-image
#restart: always
ports:
- "8080:8080"
- "28880:28880"
networks:
- dubbo-net
environment:
- dubbo.registry.address=zookeeper://zookeeper:2181
dubbo-provider-1-1:
container_name: dubbo-provider-1-1
depends_on:
- zookeeper
image: dubbo-provider-1-image
#restart: always
ports:
- "8081:8080"
- "28881:28880"
networks:
- dubbo-net
environment:
- dubbo.registry.address=zookeeper://zookeeper:2181
dubbo-provider-1-2:
container_name: dubbo-provider-1-2
depends_on:
- zookeeper
image: dubbo-provider-1-image
#restart: always
ports:
- "8082:8080"
- "28882:28880"
networks:
- dubbo-net
environment:
- dubbo.registry.address=zookeeper://zookeeper:2181
dubbo-consumer-1-0:
container_name: dubbo-consumer-1-0
depends_on:
- zookeeper
- dubbo-provider-1-0
image: dubbo-consumer-1-image
#restart: always
ports:
- "8090:8080"
- "28883:28880"
networks:
- dubbo-net
dubbo-admin:
image: apache/dubbo-admin
container_name: dubbo-admin
ports:
- "8091:8080"
networks:
- dubbo-net
environment:
- admin.registry.address=zookeeper://zookeeper:2181
- admin.config-center=zookeeper://zookeeper:2181
- admin.metadata-report.address=zookeeper://zookeeper:2181
- dubbo.admin.root.password=root
depends_on:
- zookeeper
networks:
dubbo-net:
name: dubbo-net
driver: bridge