forked from tsnolan23/tailor-react-spa
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
172 lines (157 loc) · 3.58 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# docker-compose up --force-recreate --build
# https://medium.com/travis-on-docker/how-to-run-dockerized-apps-on-heroku-and-its-pretty-great-76e07e610e22
version: "3.7"
services:
webapp:
build: .
hostname: webapp
ports:
- 8080:80
environment:
- CONSUL_HOST=consul
- TRACING_HOST=jaeger
depends_on:
- consul
- jaeger
healthcheck:
test: ["CMD", "curl", "-f", "consul:8500"]
interval: 30s
timeout: 10s
retries: 5
service-vue-client:
build: packages/fragment-vue-client
hostname: service-vue-client
environment:
- CONSUL_HOST=consul
- TRACING_HOST=jaeger
depends_on:
- consul
healthcheck:
test: ["CMD", "curl", "-f", "consul:8500"]
interval: 30s
timeout: 10s
retries: 5
service-vue-file-read:
build: packages/fragment-vue-file-read
hostname: service-vue-file-read
environment:
- CONSUL_HOST=consul
- TRACING_HOST=jaeger
depends_on:
- consul
healthcheck:
test: ["CMD", "curl", "-f", "consul:8500"]
interval: 30s
timeout: 10s
retries: 5
service-vue-http:
build: packages/fragment-vue-http
hostname: service-vue-http
environment:
- CONSUL_HOST=consul
- TRACING_HOST=jaeger
depends_on:
- consul
healthcheck:
test: ["CMD", "curl", "-f", "consul:8500"]
interval: 30s
timeout: 10s
retries: 5
service-react:
build: packages/fragment-react
hostname: service-react
environment:
- CONSUL_HOST=consul
- TRACING_HOST=jaeger
depends_on:
- consul
healthcheck:
test: ["CMD", "curl", "-f", "consul:8500"]
interval: 30s
timeout: 10s
retries: 5
service-dotnet:
build: packages/fragment-dotnet
environment:
- CONSUL_HOST=consul
- TRACING_HOST=jaeger
ports:
- 1231:1231
depends_on:
- consul
healthcheck:
test: ["CMD", "curl", "-f", "consul:8500"]
interval: 30s
timeout: 10s
retries: 5
service-common:
build: packages/fragment-common
hostname: service-common
environment:
- CONSUL_HOST=consul
- TRACING_HOST=jaeger
ports:
- 1234:80
depends_on:
- consul
healthcheck:
test: ["CMD", "curl", "-f", "consul:8500"]
interval: 30s
timeout: 10s
retries: 5
consul:
image: consul
consul-ui:
image: consul
command: "consul -ui"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.0
ports:
- 9200:9200
- 9300:9300
environment:
discovery.type: "single-node"
network.host: "0.0.0.0"
# running jaeger at http://localhost:16686
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
environment:
SPAN_STORAGE_TYPE: elasticsearch
ES_SERVER_URLS: http://elasticsearch:9200
depends_on:
- elasticsearch
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "elasticsearch:9200"]
interval: 30s
timeout: 10s
retries: 5
# running kibana at http://localhost:5601
kibana:
image: docker.elastic.co/kibana/kibana:6.4.1
ports:
- 5601:5601
depends_on:
- elasticsearch
# running grafana at http://localhost:3000
grafana:
image: grafana/grafana:5.1.0
ports:
- 3000:3000
depends_on:
- elasticsearch
# running prometheus at http://localhost:9090
prometheus:
image: prom/prometheus
ports:
- 9090:9090
depends_on:
- elasticsearch