-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (125 loc) · 3.05 KB
/
docker-compose.yml
File metadata and controls
134 lines (125 loc) · 3.05 KB
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
# docker-compose.yml
version: '3.8'
services:
envoy:
image: envoyproxy/envoy:v1.25.0
volumes:
- ./envoy.yaml:/etc/envoy/envoy.yaml:ro
ports:
- "8080:8080"
- "9901:9901"
networks:
- metrics_net
depends_on:
- auth-service
- thanos-receive
- loki
auth-service:
build:
context: ./auth-service
dockerfile: Dockerfile
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- LOG_LEVEL=debug
networks:
- metrics_net
depends_on:
- redis
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
volumes:
- redis_data:/data
networks:
- metrics_net
grafana-agent:
image: grafana/agent:v0.35.0
volumes:
- ./grafana-agent-config.yaml:/etc/grafana-agent/agent.yaml:ro
- /var/log:/var/log:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
command: --config.file=/etc/grafana-agent/agent.yaml
environment:
- AGENT_USERNAME=tenant1
- AGENT_PASSWORD=password123
networks:
- metrics_net
depends_on:
- envoy
thanos-receive:
image: thanosio/thanos:v0.31.0
command:
- "receive"
- "--tsdb.path=/tmp/thanos/receive"
- "--grpc-address=0.0.0.0:10901"
- "--http-address=0.0.0.0:10902"
- "--receive.default-tenant-id=default-tenant"
- "--log.level=debug"
- "--label=receive_replica=\"0\""
- "--label=receive_cluster=\"poc-cluster\""
- "--label=environment=\"dev\""
ports:
- "10902:10902"
- "19291:19291"
volumes:
- thanos_data:/tmp/thanos
networks:
- metrics_net
thanos-query:
image: thanosio/thanos:v0.31.0
command:
- "query"
- "--http-address=0.0.0.0:9090"
- "--grpc-address=0.0.0.0:9091"
- "--query.replica-label=receive_replica"
- "--log.level=debug"
- "--store=thanos-receive:10901"
ports:
- "9090:9090" # Thanos Query HTTP endpoint
networks:
- metrics_net
depends_on:
- thanos-receive
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
# environment:
# - GF_SECURITY_ADMIN_PASSWORD=YourSecurePassword
# - GF_AUTH_ANONYMOUS_ENABLED=false
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning:ro
networks:
- metrics_net
depends_on:
- thanos-query
- loki
loki:
image: grafana/loki:2.8.0
command: -config.file=/etc/loki/config.yaml
user: "10001"
volumes:
- ./loki/config.yaml:/etc/loki/config.yaml:ro
- loki_data:/loki
networks:
- metrics_net
ports:
- "3100:3100"
environment:
- JAEGER_AGENT_HOST=tempo
- JAEGER_SAMPLING_SERVER_URL=http://tempo:16686/sampling
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
metrics_net:
driver: bridge
volumes:
redis_data:
thanos_data:
loki_data:
grafana_data: