-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·191 lines (180 loc) · 4.26 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
187
188
189
190
191
version: '3'
services:
loki:
container_name: loki
user: root
restart: always
build:
context: loki/
dockerfile: Dockerfile
ports:
- "3100:3100"
volumes:
- ./local/loki:/loki
command: -config.file=/etc/loki/local-config.yaml
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
promtail:
container_name: promtail
user: root
restart: always
build:
context: promtail/
dockerfile: Dockerfile
volumes:
- ./local/promtail:/promtail
- /var/log:/var/log
- /var/lib/docker/containers:/var/lib/docker/containers
command: -config.file=/etc/promtail/config.yml
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
depends_on:
- loki
prometheus:
container_name: prometheus
user: root
restart: always
build:
context: prometheus/
dockerfile: Dockerfile
ports:
- "9090:9090"
volumes:
- ./local/prometheus:/prometheus
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
jaeger:
container_name: jaeger
user: root
restart: always
build:
context: jaeger/
dockerfile: Dockerfile
ports:
- "6831:6831"
- "16686:16686"
volumes:
- ./local/jaeger:/jaeger
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
grafana:
container_name: grafana
user: root
restart: always
build:
context: grafana/
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./local/grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
depends_on:
- loki
- promtail
rabbit:
image: rabbitmq:3-management
container_name: rabbit
restart: always
hostname: rabbit
environment:
- RABBITMQ_DEFAULT_USER=some
- RABBITMQ_DEFAULT_PASS=qwerty
- RABBITMQ_DEFAULT_VHOST=/
ports:
- "15672:15672"
- "5672:5672"
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
some-dbms:
container_name: some-dbms
user: root
restart: always
image: postgres:10.6
environment:
- POSTGRES_USER=some
- POSTGRES_PASSWORD=qwerty
- POSTGRES_DB=some_db
ports:
- "5432:5432"
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
dbms-exporter:
container_name: dbms-exporter
user: root
restart: always
image: wrouesnel/postgres_exporter:v0.8.0
environment:
- DATA_SOURCE_URI=some-dbms:5432/some_db?sslmode=disable
- DATA_SOURCE_USER=some
- DATA_SOURCE_PASS=qwerty
ports:
- "9187:9187"
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
depends_on:
- some-dbms
some-api-executing:
container_name: some-api-executing
user: root
restart: always
build:
context: some-api-executing/
dockerfile: Dockerfile
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
depends_on:
- some-api-client
some-api:
container_name: some-api
user: root
restart: always
build:
context: some-api
dockerfile: Dockerfile
ports:
- "8081:8081"
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
depends_on:
- some-dbms
some-api-client:
container_name: some-api-client
user: root
restart: always
build:
context: some-api-client
dockerfile: Dockerfile
ports:
- "8082:8082"
logging:
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
depends_on:
- some-api
- rabbit