|
| 1 | +services: |
| 2 | + clickhouse: |
| 3 | + image: "clickhouse:25.4.5.24" |
| 4 | + environment: |
| 5 | + CLICKHOUSE_DB: clickhouse |
| 6 | + CLICKHOUSE_USER: clickhouse |
| 7 | + CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: '1' |
| 8 | + CLICKHOUSE_PASSWORD: clickhouse |
| 9 | + ports: |
| 10 | + - "8123:8123" |
| 11 | + - "9000:9000" |
| 12 | + volumes: |
| 13 | + - clickhouse:/var/lib/clickhouse |
| 14 | + |
| 15 | + grafana: |
| 16 | + image: grafana/grafana:12.0.0 |
| 17 | + volumes: |
| 18 | + - ./grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml |
| 19 | + environment: |
| 20 | + - GF_AUTH_ANONYMOUS_ENABLED=true |
| 21 | + - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin |
| 22 | + - GF_AUTH_DISABLE_LOGIN_FORM=true |
| 23 | + - GF_FEATURE_TOGGLES_ENABLE=traceqlEditor metricsSummary |
| 24 | + - GF_INSTALL_PLUGINS=https://storage.googleapis.com/integration-artifacts/grafana-exploretraces-app/grafana-exploretraces-app-latest.zip;grafana-traces-app |
| 25 | + ports: |
| 26 | + - "53000:3000" |
| 27 | + |
| 28 | + loki: |
| 29 | + image: grafana/loki:3.4.1 |
| 30 | + command: -config.file=/etc/loki/local-config.yaml |
| 31 | + ports: |
| 32 | + - "3100:3100" |
| 33 | + |
| 34 | + memcached: |
| 35 | + image: memcached:1.6.38 |
| 36 | + container_name: memcached |
| 37 | + ports: |
| 38 | + - "11211:11211" |
| 39 | + environment: |
| 40 | + - MEMCACHED_MAX_MEMORY=64m # Set the maximum memory usage |
| 41 | + - MEMCACHED_THREADS=4 # Number of threads to use |
| 42 | + |
| 43 | + mimir: |
| 44 | + image: grafana/mimir:2.17.1 |
| 45 | + command: -config.file=/etc/mimir/mimir.yaml |
| 46 | + volumes: |
| 47 | + - ./mimir.yaml:/etc/mimir/mimir.yaml |
| 48 | + |
| 49 | + otel-collector: |
| 50 | + image: otel/opentelemetry-collector-contrib:0.135.0 |
| 51 | + volumes: |
| 52 | + - ./otel-collector.yaml:/etc/otelcol-contrib/config.yaml |
| 53 | + ports: |
| 54 | + - "4317:4317" # OTLP gRPC receiver |
| 55 | + - "4318:4318" # OTLP HTTP receiver" |
| 56 | + |
| 57 | + postgres: |
| 58 | + image: postgres:17.4 |
| 59 | + environment: |
| 60 | + POSTGRES_USER: postgres |
| 61 | + POSTGRES_PASSWORD: postgres |
| 62 | + POSTGRES_DB: postgres |
| 63 | + PGDATA: /var/lib/postgresql/17/docker |
| 64 | + ports: |
| 65 | + - "5432:5432" |
| 66 | + volumes: |
| 67 | + - postgres:/var/lib/postgresql/17/docker |
| 68 | + |
| 69 | + redis: |
| 70 | + image: redis:7.4.2 |
| 71 | + ports: |
| 72 | + - "6379:6379" |
| 73 | + |
| 74 | + tempo: |
| 75 | + image: grafana/tempo:2.8.2 |
| 76 | + command: ["-config.file=/etc/tempo.yaml"] |
| 77 | + volumes: |
| 78 | + - ./tempo.yaml:/etc/tempo.yaml |
| 79 | + - tempo:/var/tempo |
| 80 | + ports: |
| 81 | + - "3200" |
| 82 | + depends_on: |
| 83 | + - tempo-init |
| 84 | + - memcached |
| 85 | + |
| 86 | + # Tempo runs as user 10001, and docker compose creates the volume as root. |
| 87 | + # As such, we need to chown the volume in order for Tempo to start correctly. |
| 88 | + tempo-init: |
| 89 | + image: bash |
| 90 | + user: root |
| 91 | + entrypoint: |
| 92 | + - "chown" |
| 93 | + - "10001:10001" |
| 94 | + - "/var/tempo" |
| 95 | + volumes: |
| 96 | + - tempo:/var/tempo |
| 97 | + |
| 98 | +volumes: |
| 99 | + clickhouse: {} |
| 100 | + postgres: {} |
| 101 | + tempo: {} |
0 commit comments