-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.16 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
version: "3.8"
services:
victorialogs:
image: victoriametrics/victoria-logs:v1.49.0
container_name: vl-proxy-test
ports:
- "9428:9428"
command:
- "-storageDataPath=/vlogs"
- "-retentionPeriod=1d"
- "-httpListenAddr=:9428"
volumes:
- vl-data:/vlogs
healthcheck:
test: ["CMD", "wget", "-q", "-O-", "http://localhost:9428/health"]
interval: 3s
timeout: 2s
retries: 10
start_period: 5s
loki-vl-proxy:
build: .
container_name: loki-vl-proxy
ports:
- "3100:3100"
command:
- "-listen=:3100"
- "-backend=http://victorialogs:9428"
- "-log-level=debug"
- "-cache-ttl=30s"
depends_on:
victorialogs:
condition: service_healthy
grafana:
image: grafana/grafana:12.4.2
container_name: grafana-proxy-test
ports:
- "3000:3000"
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- ./test/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:ro
depends_on:
- loki-vl-proxy
volumes:
vl-data: