-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (32 loc) · 961 Bytes
/
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
version: '3.8'
services:
log_generator:
build:
context: log_generator
dockerfile: Dockerfile
volumes:
- ./log_generator:/app
- ./logs:/app/logs
command: uv run log-generator
otel_collector:
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-loki-grafana/otel-collector-config.yaml:/etc/otel-collector-config.yaml
- ./logs:/app/logs
loki:
image: grafana/loki:latest
ports:
- "3100:3100" # Loki default port
command: -config.file=/etc/loki/local-config.yaml
volumes:
- ./otel-loki-grafana/loki-config.yaml:/etc/loki/local-config.yaml
grafana:
image: grafana/grafana:11.3.0
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SECURITY_ADMIN_USER=admin
volumes:
- ./otel-loki-grafana/grafana/provisioning:/etc/grafana/provisioning