-
Notifications
You must be signed in to change notification settings - Fork 405
Expand file tree
/
Copy pathdocker-compose.memdb.yaml
More file actions
90 lines (90 loc) · 2.85 KB
/
Copy pathdocker-compose.memdb.yaml
File metadata and controls
90 lines (90 loc) · 2.85 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
---
# FOR DEVELOPMENT ONLY
# docker-compose -f docker-compose.memdb.yaml up --build
services:
spicedb-1:
container_name: "spicedb-1"
build: "."
command: "serve"
restart: "no"
ports:
- "50051:50051" # grpc endpoint
- "8443:8443" # http endpoint
- "9090:9090" # prometheus metrics
environment:
- "SPICEDB_LOG_FORMAT=json"
- "SPICEDB_LOG_LEVEL=info"
- "SPICEDB_HTTP_ENABLED=true"
- "SPICEDB_GRPC_PRESHARED_KEY=super-secret-key"
- "SPICEDB_DATASTORE_ENGINE=memory"
- "SPICEDB_OTEL_PROVIDER=otlpgrpc"
- "SPICEDB_OTEL_SAMPLE_RATIO=1"
- "SPICEDB_TELEMETRY_ENDPOINT="
- "SPICEDB_GRPC_LOG_REQUESTS_ENABLED=false"
- "SPICEDB_GRPC_LOG_RESPONSES_ENABLED=false"
- "SPICEDB_STREAMING_API_RESPONSE_DELAY_TIMEOUT=0s"
- "SPICEDB_OTEL_ENDPOINT=otel-collector:4317"
- "SPICEDB_OTEL_INSECURE=true"
- "SPICEDB_ENABLE_PERFORMANCE_INSIGHT_METRICS=true"
depends_on:
otel-collector:
condition: "service_started"
healthcheck:
test: ["CMD", "/bin/grpc_health_probe", "-addr=localhost:50051"]
interval: "5s"
timeout: "30s"
retries: 3
prometheus:
image: "prom/prometheus:v2.47.0"
command:
- "--config.file=/etc/prometheus/prometheus.yaml"
- "--storage.tsdb.path=/prometheus"
- "--enable-feature=native-histograms"
volumes:
- "./development/prometheus.yaml:/etc/prometheus/prometheus.yaml"
ports:
- "9091:9090" # Prometheus UI
restart: "unless-stopped"
otel-collector:
image: "otel/opentelemetry-collector:0.60.0"
command: "--config /etc/otel-config.yaml"
volumes:
- "./development/otel-config.yaml:/etc/otel-config.yaml"
ports:
- "4317:4317" # OTLP gRPC
- "8888" # Prometheus metrics for collector
depends_on:
- "tempo"
loki:
image: "grafana/loki:2.9.0"
command: "-config.file=/etc/loki/loki.yaml"
volumes:
- "./development/loki.yaml:/etc/loki/loki.yaml"
ports:
- "3100" # Loki API
restart: "unless-stopped"
tempo:
image: "grafana/tempo:1.5.0"
command: "-search.enabled=true -config.file=/etc/tempo.yaml"
volumes:
- "./development/tempo.yaml:/etc/tempo.yaml"
restart: "unless-stopped"
ports:
- "4317" # OTLP gRPC
- "3100" # tempo
grafana:
image: "grafana/grafana:9.1.5-ubuntu"
volumes:
- "./development/grafana/provisioning/datasources:/etc/grafana/provisioning/datasources"
- "./development/grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards"
- "./development/grafana/dashboards:/etc/grafana/dashboards"
environment:
- "GF_AUTH_ANONYMOUS_ENABLED=true"
- "GF_AUTH_ANONYMOUS_ORG_ROLE=Admin"
- "GF_AUTH_DISABLE_LOGIN_FORM=true"
ports:
- "3000:3000" # UI
depends_on:
- "tempo"
- "prometheus"
- "loki"