-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
186 lines (173 loc) · 3.91 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
version: "2"
services:
simple-secrets:
build:
context: .
dockerfile: ./server/Dockerfile
networks:
envoymesh: {}
ports:
- 3000:3000
- 10000:10000
environment:
ETCD_CLUSTER_MEMBERS: "http://etcd0:2379,http://etcd1:2379,http://etcd2:2379"
FLUENTD_FORWARD_ADDR: "127.0.0.1:24224"
volumes:
- "./server/envoy.yaml:/etc/envoy.yaml"
depends_on:
- spire-server
- fluentd-proxy
spire-server:
build:
context: ./spire
dockerfile: Dockerfile
networks:
envoymesh: {}
expose:
- "8080"
- "8081"
tty: true
etcd0:
image: quay.io/coreos/etcd
networks:
envoymesh: {}
ports:
- 2379:2379
volumes:
- etcd0:/etcd_data
command:
- /usr/local/bin/etcd
- -name
- etcd0
- --data-dir
- /etcd_data
- -advertise-client-urls
- http://etcd0:2379
- -listen-client-urls
- http://0.0.0.0:2379
- -initial-advertise-peer-urls
- http://etcd0:2380
- -listen-peer-urls
- http://0.0.0.0:2380
- -initial-cluster
- etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380
etcd1:
image: quay.io/coreos/etcd
networks:
envoymesh: {}
ports:
- 2379
volumes:
- etcd1:/etcd_data
command:
- /usr/local/bin/etcd
- -name
- etcd1
- --data-dir
- /etcd_data
- -advertise-client-urls
- http://etcd1:2379
- -listen-client-urls
- http://0.0.0.0:2379
- -initial-advertise-peer-urls
- http://etcd1:2380
- -listen-peer-urls
- http://0.0.0.0:2380
- -initial-cluster
- etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380
etcd2:
image: quay.io/coreos/etcd
networks:
envoymesh: {}
ports:
- 2379
volumes:
- etcd2:/etcd_data
command:
- /usr/local/bin/etcd
- -name
- etcd2
- --data-dir
- /etcd_data
- -advertise-client-urls
- http://etcd2:2379
- -listen-client-urls
- http://0.0.0.0:2379
- -initial-advertise-peer-urls
- http://etcd2:2380
- -listen-peer-urls
- http://0.0.0.0:2380
- -initial-cluster
- etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380
etcd-browser:
build: ./etcd-browser
networks:
envoymesh: {}
ports:
- 8000:8000
environment:
ETCD_HOST: etcd0
ETCD_PORT: 2379
depends_on:
- etcd0
fluentd:
image: fluent/fluentd
networks:
fluentd: {}
volumes:
- ./log:/fluentd/log
fluentd-proxy:
build:
context: .
dockerfile: ./proxy/Dockerfile
expose:
- 24224
networks:
envoymesh: {}
fluentd: {}
volumes:
- "./fluentd-proxy/envoy.yaml:/etc/envoy.yaml"
tty: true
prometheus:
image: quay.io/prometheus/prometheus
networks:
prometheus: {}
ports:
- "9090:9090"
volumes:
- "./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml"
- "./prometheus/secrets-server.rules:/etc/prometheus/secrets-server.rules"
entrypoint:
- "prometheus"
- "--config.file=/etc/prometheus/prometheus.yml"
- "--web.external-url=http://localhost:9090"
prometheus-proxy:
build:
context: .
dockerfile: ./proxy/Dockerfile
networks:
envoymesh: {}
prometheus: {}
volumes:
- "./prometheus-proxy/envoy.yaml:/etc/envoy.yaml"
tty: true
alertmanager:
image: quay.io/prometheus/alertmanager
ports:
- "9093:9093"
volumes:
- "./prometheus/alertmanager.yml:/etc/alertmanager.yml"
entrypoint:
- "alertmanager"
- "--config.file"
- "/etc/alertmanager.yml"
- "--web.external-url=http://localhost:9093"
volumes:
etcd0: {}
etcd1: {}
etcd2: {}
audit_log: {}
networks:
envoymesh: {}
prometheus: {}
fluentd: {}