Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com> Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
156 lines
4.7 KiB
YAML
156 lines
4.7 KiB
YAML
name: grafana-fs-dev
|
|
|
|
services:
|
|
proxy:
|
|
image: grafana-proxy
|
|
build:
|
|
context: .
|
|
dockerfile: proxy.dockerfile
|
|
volumes:
|
|
- ../../public/build:/cdn/public/build
|
|
- ../../public/app/plugins:/cdn/public/app/plugins
|
|
- ../../public/fonts:/cdn/public/fonts
|
|
ports:
|
|
- '3000:80' # Gateway
|
|
- '3010:81' # CDN
|
|
depends_on:
|
|
- grafana-api
|
|
- frontend-service
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
|
|
grafana-api:
|
|
image: grafana-fs-dev
|
|
build:
|
|
context: ../..
|
|
dockerfile: devenv/frontend-service/grafana-fs-dev.dockerfile
|
|
entrypoint: ['bin/grafana', 'server']
|
|
volumes:
|
|
- backend-data:/grafana/data
|
|
- ./provisioning/datasources:/grafana/conf/provisioning/datasources
|
|
- ./provisioning/dashboards:/grafana/conf/provisioning/dashboards
|
|
- ../dev-dashboards:/grafana/conf/dev-dashboards
|
|
- ./configs/grafana-api.local.ini:/grafana/conf/custom.ini
|
|
environment:
|
|
OTEL_BSP_SCHEDULE_DELAY: 500
|
|
GF_DEFAULT_APP_MODE: development
|
|
GF_PANELS_ENABLE_ALPHA: true
|
|
GF_SERVER_CDN_URL: http://localhost:3010
|
|
GF_FEATURE_TOGGLES_ENABLE: enableNativeHTTPHistogram
|
|
GF_DATABASE_URL: postgres://grafana:grafana@postgres:5432/grafana
|
|
GF_SERVER_ROUTER_LOGGING: true
|
|
GF_LOG_LEVEL: info
|
|
GF_AUTH_LOGIN_COOKIE_NAME: grafana_fs_dev_login # set a custom cookie name to not conflict with other instances running on localhost
|
|
OTEL_SERVICE_NAME: grafana-api
|
|
GF_TRACING_OPENTELEMETRY_OTLP_ADDRESS: 'alloy:4317'
|
|
GF_TRACING_OPENTELEMETRY_OTLP_PROPAGATION: jaeger,w3c
|
|
ports:
|
|
- '3011:3000'
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
|
|
frontend-service:
|
|
image: grafana-fs-dev
|
|
build:
|
|
context: ../..
|
|
dockerfile: devenv/frontend-service/grafana-fs-dev.dockerfile
|
|
entrypoint: ['bin/grafana', 'server', 'target']
|
|
volumes:
|
|
- ./configs/frontend-service.local.ini:/grafana/conf/custom.ini
|
|
ports:
|
|
- '3012:3000'
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
environment:
|
|
OTEL_BSP_SCHEDULE_DELAY: 500
|
|
GF_DEFAULT_APP_MODE: development
|
|
GF_DEFAULT_TARGET: frontend-server
|
|
GF_SECURITY_CONTENT_SECURITY_POLICY: false
|
|
GF_FEATURE_TOGGLES_ENABLE: enableNativeHTTPHistogram
|
|
GF_SERVER_CDN_URL: http://localhost:3010
|
|
GF_SERVER_ROUTER_LOGGING: true
|
|
GF_LOG_LEVEL: info
|
|
OTEL_SERVICE_NAME: frontend-service
|
|
GF_TRACING_OPENTELEMETRY_OTLP_ADDRESS: 'alloy:4317'
|
|
GF_TRACING_OPENTELEMETRY_OTLP_PROPAGATION: jaeger,w3c
|
|
|
|
postgres:
|
|
image: postgres:16.1-alpine3.19@sha256:17eb369d9330fe7fbdb2f705418c18823d66322584c77c2b43cc0e1851d01de7
|
|
environment:
|
|
POSTGRES_USER: grafana
|
|
POSTGRES_PASSWORD: grafana
|
|
POSTGRES_DB: grafana
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
|
|
alloy:
|
|
image: grafana/alloy:v1.11.2@sha256:6ab34b8201f0e8b0c4346be4934c9965723af3f7f21dd9a65fd73f270f69b451
|
|
volumes:
|
|
- ./configs/alloy:/alloy-config
|
|
- /var/run/docker.sock:/var/run/docker.sock # To scrape Docker container logs
|
|
- alloy-data:/var/lib/alloy/data
|
|
ports:
|
|
- '12346:12345' # Alloy UI
|
|
command:
|
|
- run
|
|
- --server.http.listen-addr=0.0.0.0:12345
|
|
- --storage.path=/var/lib/alloy/data
|
|
- /alloy-config
|
|
depends_on:
|
|
- loki
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
|
|
prometheus:
|
|
image: prom/prometheus:v3.7.2@sha256:23031bfe0e74a13004252caaa74eccd0d62b6c6e7a04711d5b8bf5b7e113adc7
|
|
volumes:
|
|
- prometheus-data:/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
- '--web.enable-remote-write-receiver'
|
|
- '--enable-feature=native-histograms'
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
|
|
loki:
|
|
image: grafana/loki:3.5.7@sha256:0eaee7bf39cc83aaef46914fb58f287d4f4c4be6ec96b86c2ed55719a75e49c8
|
|
volumes:
|
|
- loki-data:/loki
|
|
command: -config.file=/etc/loki/local-config.yaml
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
|
|
tempo-init:
|
|
image: busybox:1.37.0@sha256:e3652a00a2fabd16ce889f0aa32c38eec347b997e73bd09e69c962ec7f8732ee
|
|
user: root
|
|
entrypoint:
|
|
- 'chown'
|
|
- '10001:10001'
|
|
- '/var/tempo'
|
|
volumes:
|
|
- tempo-data:/var/tempo
|
|
|
|
tempo:
|
|
image: grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4
|
|
volumes:
|
|
- tempo-data:/var/lib/tempo
|
|
- ./configs/tempo.yaml:/etc/tempo/tempo.yaml
|
|
command: ['-config.file=/etc/tempo/tempo.yaml']
|
|
labels:
|
|
- 'alloy.logs=true'
|
|
|
|
depends_on:
|
|
tempo-init:
|
|
condition: service_completed_successfully
|
|
|
|
volumes:
|
|
backend-data:
|
|
postgres-data:
|
|
alloy-data:
|
|
loki-data:
|
|
tempo-data:
|
|
prometheus-data:
|