-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.yml
121 lines (121 loc) · 4.77 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
services:
mysql:
container_name: mysql
image: mysql:8.4.2 # https://hub.docker.com/_/mysql
command: --mysql_native_password=on
extra_hosts: ['host.docker.internal:host-gateway']
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- mysql:/var/lib/mysql
- ./docker/mysql/initdb:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
adminer:
container_name: adminer
image: adminer:4.8.1-standalone # https://hub.docker.com/_/adminer
extra_hosts: ['host.docker.internal:host-gateway']
environment:
ADMINER_DEFAULT_SERVER: mysql
depends_on:
- mysql
ports:
- "8888:8080"
toxiproxy:
container_name: toxiproxy
image: ghcr.io/shopify/toxiproxy:2.9.0 # https://github.com/shopify/toxiproxy/pkgs/container/toxiproxy
extra_hosts: ['host.docker.internal:host-gateway']
command: -host=0.0.0.0 -config /config/toxiproxy.json -proxy-metrics -runtime-metrics
depends_on:
- mysql
volumes:
- ./docker/toxiproxy:/config
ports:
- "8474:8474"
- "3307:3307"
- "3308:3308"
toxiproxy-ui:
container_name: toxiproxy-ui
image: buckle/toxiproxy-frontend:0.10 # https://hub.docker.com/r/buckle/toxiproxy-frontend
extra_hosts: ['host.docker.internal:host-gateway']
environment:
TOXIPROXY_URL: http://host.docker.internal:8474
depends_on:
- toxiproxy
ports:
- "8484:8080"
prometheus:
container_name: prometheus
image: prom/prometheus:v2.54.0 # https://hub.docker.com/r/prom/prometheus
extra_hosts: ['host.docker.internal:host-gateway']
command:
- --enable-feature=exemplar-storage
- --web.enable-remote-write-receiver
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- prometheus:/prometheus
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
grafana:
container_name: grafana
image: grafana/grafana:11.1.4 # https://hub.docker.com/r/grafana/grafana/tags and https://github.com/grafana/grafana/releases
extra_hosts: ['host.docker.internal:host-gateway']
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- ./docker/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./docker/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources:ro
- ./docker/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./docker/grafana/provisioning/alerting:/etc/grafana/provisioning/alerting:ro
ports:
- "3000:3000"
tempo-init:
# Tempo runs as user 10001, and docker compose creates the volume as root.
# As such, we need to chown the volume in order for Tempo to start correctly.
# This should not be needed but this is the official solution recommended by Tempo maintainers
# See: https://github.com/grafana/tempo/blob/a21001a72a5865bfcfc1b0d2dfa30160c5a26103/example/docker-compose/local/docker-compose.yaml
# See: https://github.com/grafana/tempo/issues/1657
image: &tempoImage grafana/tempo:2.5.0 # https://hub.docker.com/r/grafana/tempo/tags and https://github.com/grafana/tempo/releases
user: root
entrypoint:
- "chown"
- "10001:10001"
- "/var/tempo"
volumes:
- tempo:/var/tempo
tempo:
container_name: tempo
image: *tempoImage
extra_hosts: ['host.docker.internal:host-gateway']
command: ['-config.file=/etc/tempo.yml']
depends_on: ['tempo-init']
volumes:
- tempo:/var/tempo
- ./docker/grafana/tempo.yml:/etc/tempo.yml:ro
ports:
- "3200:3200" # tempo
- "9411:9411" # zipkin
loki:
container_name: loki
image: grafana/loki:3.0.1 # https://hub.docker.com/r/grafana/loki/tags and https://github.com/grafana/loki/releases
extra_hosts: ['host.docker.internal:host-gateway']
command: ['-config.file=/etc/loki/local-config.yaml']
ports:
- "3100:3100"
maildev:
container_name: maildev
image: maildev/maildev:2.1.0 # https://hub.docker.com/r/maildev/maildev/tags
extra_hosts: [ 'host.docker.internal:host-gateway' ]
ports:
- "3001:1080"
- "25:1025"
volumes:
mysql:
driver: local
prometheus:
driver: local
tempo:
driver: local