-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
143 lines (140 loc) · 3.85 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '2.1'
services:
pushgateway:
image: prom/pushgateway
expose:
- 9091
ports:
- "9091:9091"
prometheus:
image: prom/prometheus:v2.9.2
depends_on:
- pushgateway
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- --config.file=/etc/prometheus/prometheus.yml
expose:
- 9090
ports:
- "9090:9090"
grafana:
image: grafana/grafana:4.6.3
depends_on:
- prometheus
environment:
- GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
expose:
- 3000
ports:
- "3000:3000"
cell:
image: deepfabric/quickstart
ports:
- "6379:6379"
seata1:
image: infinivision/seata
depends_on:
- cell
- pushgateway
ports:
- "8080:8080"
command:
- --wait=10
- --id=1
- --init=32
- --log-level=info
- --addr=seata1:8080
- --addr-cell=cell:6379
- --addr-peer=seata1:9090
- --prophet-addr=seata1:9529
- --prophet-addr-client=http://seata1:2371,http://seata2:2371,http://seata3:2371
- --prophet-urls-client=http://0.0.0.0:2371
- --prophet-urls-advertise-client=http://seata1:2371
- --prophet-urls-peer=http://0.0.0.0:2381
- --prophet-urls-advertise-peer=http://seata1:2381
- --prophet-initial-cluster=p1=http://seata1:2381,p2=http://seata2:2381,p3=http://seata3:2381
- --prophet-storage=true
- --rack=rack-1
- --metrics-push-addr=pushgateway:9091
- --metrics-push-interval=5
seata2:
image: infinivision/seata
depends_on:
- cell
- pushgateway
ports:
- "8081:8080"
command:
- --wait=10
- --id=2
- --init=32
- --log-level=info
- --addr=seata2:8080
- --addr-cell=cell:6379
- --addr-peer=seata2:9090
- --prophet-addr=seata2:9529
- --prophet-addr-client=http://seata1:2371,http://seata2:2371,http://seata3:2371
- --prophet-urls-client=http://0.0.0.0:2371
- --prophet-urls-advertise-client=http://seata2:2371
- --prophet-urls-peer=http://0.0.0.0:2381
- --prophet-urls-advertise-peer=http://seata2:2381
- --prophet-initial-cluster=p1=http://seata1:2381,p2=http://seata2:2381,p3=http://seata3:2381
- --prophet-storage=true
- --rack=rack-2
- --metrics-push-addr=pushgateway:9091
- --metrics-push-interval=5
seata3:
image: infinivision/seata
depends_on:
- cell
- pushgateway
ports:
- "8082:8080"
command:
- --wait=10
- --id=3
- --init=32
- --log-level=info
- --addr=seata3:8080
- --addr-cell=cell:6379
- --addr-peer=seata3:9090
- --prophet-addr=seata3:9529
- --prophet-addr-client=http://seata1:2371,http://seata2:2371,http://seata3:2371
- --prophet-urls-client=http://0.0.0.0:2371
- --prophet-urls-advertise-client=http://seata3:2371
- --prophet-urls-peer=http://0.0.0.0:2381
- --prophet-urls-advertise-peer=http://seata3:2381
- --prophet-initial-cluster=p1=http://seata1:2381,p2=http://seata2:2381,p3=http://seata3:2381
- --prophet-storage=true
- --rack=rack-3
- --metrics-push-addr=pushgateway:9091
- --metrics-push-interval=5
seata-proxy:
image: infinivision/seata-proxy
depends_on:
- cell
- seata1
- seata2
- seata3
ports:
- "8091:8080"
command:
- --log-level=info
- --addr=:8080
- --addr-prophet=seata1:9529,seata2:9529,seata3:9529
seata-dashboard:
image: infinivision/seata-dashboard
depends_on:
- cell
- seata1
- seata2
- seata3
ports:
- "8084:8080"
command:
- --addr=:8080
- --addr-cell=cell:6379
- --addr-prophet=seata1:9529,seata2:9529,seata3:9529