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
|
name: buildkit
services:
buildkit:
container_name: buildkit-dev
build:
context: ../..
args:
BUILDKIT_DEBUG: 1
image: moby/buildkit:local
ports:
- 127.0.0.1:5000:5000
- 127.0.0.1:6060:6060
restart: always
privileged: true
environment:
DELVE_PORT: 5000
OTEL_SERVICE_NAME: buildkitd
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
configs:
- source: buildkit_config
target: /etc/buildkit/buildkitd.toml
volumes:
- buildkit:/var/lib/buildkit
depends_on:
- otel-collector
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- 127.0.0.1:16686:16686
otel-collector:
image: otel/opentelemetry-collector-contrib:0.92.0
restart: always
configs:
- source: otelcol_config
target: /etc/otelcol-contrib/config.yaml
ports:
- 127.0.0.1:4317:4317
- 127.0.0.1:8000:8000
depends_on:
- jaeger
prometheus:
image: prom/prometheus:v2.48.1
configs:
- source: prometheus_config
target: /etc/prometheus/prometheus.yml
volumes:
- prometheus:/prometheus
depends_on:
- buildkit
grafana:
image: grafana/grafana-oss:10.2.3
configs:
- source: grafana_config
target: /etc/grafana/grafana.ini
- source: grafana_datasources_config
target: /etc/grafana/provisioning/datasources/datasources.yaml
ports:
- 127.0.0.1:3000:3000
volumes:
- grafana:/var/lib/grafana
depends_on:
- prometheus
volumes:
buildkit:
prometheus:
grafana:
configs:
buildkit_config:
file: ./buildkitd.toml
otelcol_config:
file: ./otelcol.yaml
prometheus_config:
file: ./prometheus.yml
grafana_config:
file: ./grafana.ini
grafana_datasources_config:
file: ./datasources.yaml
|