crusto/compose.yaml
2024-12-09 15:43:16 +03:00

70 lines
1.9 KiB
YAML

name: crusto
networks:
crusto: {}
services:
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "4317"
- "16686:16686"
networks:
- crusto
grafana:
image: grafana/grafana:latest
networks:
- crusto
ports:
- "3001:3000"
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_PATHS_DATA=/var/lib/grafana
volumes:
- ./infra/grafana/datasource-jaeger.yml:/etc/grafana/provisioning/datasources/jaeger.yml
- ./infra/grafana/datasource-prometheus.yml:/etc/grafana/provisioning/datasources/prometheus.yml
- ./infra/grafana/dashboards:/etc/grafana/provisioning/dashboards
- ./run/grafana:/var/lib/grafana
prometheus:
image: prom/prometheus:latest
networks:
- crusto
ports:
- "9090:9090"
volumes:
- ./infra/prometheus.yml:/etc/prometheus/prometheus.yml
otel-collector:
image: otel/opentelemetry-collector-contrib
networks:
- crusto
volumes:
- ./infra/otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- 1888:1888 # pprof extension
- 8888:8888 # Prometheus metrics exposed by the Collector
- 8889:8889 # Prometheus exporter metrics
- 13133:13133 # health_check extension
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP http receiver
- 55679:55679 # zpages extension
depends_on:
- jaeger
surrealdb:
image: surrealdb/surrealdb:latest-dev
networks:
- crusto
environment:
SURREAL_TELEMETRY_PROVIDER: otlp
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
SURREAL_LOG: debug
ports:
- protocol: tcp
published: 9867
target: 8000
user: "0"
volumes:
- ./run/data.db:/data.db
command: start surrealkv:/data.db -u root -p root
depends_on:
- jaeger
- otel-collector