-
Notifications
You must be signed in to change notification settings - Fork 175
/
docker-compose.yml
136 lines (123 loc) · 3.19 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
version: '3.7'
networks:
trk-ex-front-tier:
trk-ex-back-tier:
services:
prometheus:
image: prom/prometheus:v2.25.0
volumes:
- ./docker-compose-data/prometheus-config:/etc/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- 9090:9090
networks:
- trk-ex-back-tier
restart: always
influxdb:
image: influxdb:2.0
volumes:
- ./docker-compose-data/influxdb-config/config.yml:/etc/influxdb2/config.yml
- influxdbv2:/.influxdbv2
networks:
- trk-ex-back-tier
restart: always
ports:
- 8086:8086
command:
- '--reporting-disabled'
# influxdb 2.0 cli, for setting up influxdb on startup
influxdb_cli:
links:
- influxdb
image: influxdb:2.0
volumes:
- ./docker-compose-data/influxdb-config/setup-influxdb.sh:/bin/setup-influxdb.sh
entrypoint: sh /bin/setup-influxdb.sh
networks:
- trk-ex-back-tier
restart: on-failure:10
depends_on:
# Wait for the influxd service in the influxdb container has fully bootstrapped before
# trying to setup an influxdb instance with the influxdb_cli service.
- influxdb
telegraf:
image: telegraf:1.17
volumes:
- ./docker-compose-data/telegraf-config/telegraf.conf:/etc/telegraf/telegraf.conf
depends_on:
- influxdb
networks:
- trk-ex-back-tier
restart: always
grafana:
image: grafana/grafana:7.4.3
user: nobody
ports:
- 3000:3000
volumes:
- ./docker-compose-data/grafana-config:/etc/grafana
- ./docker-compose-data/dashboards:/var/lib/grafana/dashboards
networks:
- trk-ex-back-tier
- trk-ex-front-tier
restart: always
mockster:
image: trickstercache/mockster:latest
ports:
- 8482:8482
networks:
- trk-ex-back-tier
restart: always
redis:
image: redis:latest
user: nobody
ports:
- 6379:6379
networks:
- trk-ex-back-tier
restart: always
jaeger:
image: jaegertracing/all-in-one:1.22
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 14268:14268
- 14250:14250
networks:
- trk-ex-back-tier
restart: always
trickster:
image: trickstercache/trickster:2
depends_on:
- prometheus
- mockster
- grafana
- jaeger
- redis
ports:
- 8480:8480 # primary frontend proxy port (insecure)
- 8481:8481 # metrics port (insecure)
# - 8483:8483 # tls frontend proxy port, unused in this demo
- 8484:8484 # config reload port (insecure), exposed publicly for demonstration purposes only
volumes:
- ./docker-compose-data/trickster-config:/etc/trickster
- ./docker-compose-data/trickster-data:/data/trickster
networks:
- trk-ex-back-tier
restart: always
# zipkin:
# image: openzipkin/zipkin:latest
# ports:
# - 9411:9411
# networks:
# - trk-ex-back-tier
# restart: always
volumes:
influxdbv2: