|
| 1 | +version: "3.9" |
| 2 | + |
| 3 | +services: |
| 4 | + prometheus: |
| 5 | + image: prom/prometheus:v2.49.1 |
| 6 | + restart: unless-stopped |
| 7 | + command: |
| 8 | + - "--config.file=/etc/prometheus/prometheus.yml" |
| 9 | + - "--web.enable-lifecycle" |
| 10 | + - "--web.enable-remote-write-receiver" |
| 11 | + ports: |
| 12 | + - "9090:9090" |
| 13 | + volumes: |
| 14 | + - ./ops/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro |
| 15 | + - ./ops/prometheus/alerts.yml:/etc/prometheus/alerts.yml:ro |
| 16 | + - prometheus_data:/prometheus |
| 17 | + networks: |
| 18 | + - observability |
| 19 | + |
| 20 | + loki: |
| 21 | + image: grafana/loki:2.9.3 |
| 22 | + restart: unless-stopped |
| 23 | + command: ["-config.file=/etc/loki/local-config.yaml"] |
| 24 | + ports: |
| 25 | + - "3100:3100" |
| 26 | + volumes: |
| 27 | + - ./ops/loki/local-config.yaml:/etc/loki/local-config.yaml:ro |
| 28 | + - loki_data:/loki |
| 29 | + networks: |
| 30 | + - observability |
| 31 | + |
| 32 | + tempo: |
| 33 | + image: grafana/tempo:2.4.1 |
| 34 | + restart: unless-stopped |
| 35 | + command: ["-config.file=/etc/tempo/tempo.yaml"] |
| 36 | + ports: |
| 37 | + - "3200:3200" |
| 38 | + volumes: |
| 39 | + - ./ops/tempo/tempo.yaml:/etc/tempo/tempo.yaml:ro |
| 40 | + - tempo_data:/tmp/tempo |
| 41 | + networks: |
| 42 | + - observability |
| 43 | + |
| 44 | + otel-collector: |
| 45 | + image: otel/opentelemetry-collector-contrib:0.87.0 |
| 46 | + restart: unless-stopped |
| 47 | + command: ["--config=/etc/otelcol/config.yaml"] |
| 48 | + depends_on: |
| 49 | + - prometheus |
| 50 | + - loki |
| 51 | + - tempo |
| 52 | + ports: |
| 53 | + - "4317:4317" |
| 54 | + - "4318:4318" |
| 55 | + - "8888:8888" |
| 56 | + volumes: |
| 57 | + - ./ops/otel/otelcol-config.yaml:/etc/otelcol/config.yaml:ro |
| 58 | + networks: |
| 59 | + - observability |
| 60 | + |
| 61 | + grafana: |
| 62 | + image: grafana/grafana:10.4.2 |
| 63 | + restart: unless-stopped |
| 64 | + depends_on: |
| 65 | + - prometheus |
| 66 | + - loki |
| 67 | + - tempo |
| 68 | + ports: |
| 69 | + - "3000:3000" |
| 70 | + environment: |
| 71 | + GF_SECURITY_ADMIN_USER: admin |
| 72 | + GF_SECURITY_ADMIN_PASSWORD: admin |
| 73 | + GF_PATHS_PROVISIONING: /etc/grafana/provisioning |
| 74 | + volumes: |
| 75 | + - grafana_data:/var/lib/grafana |
| 76 | + - ./ops/grafana/provisioning:/etc/grafana/provisioning:ro |
| 77 | + - ./ops/grafana/dashboards:/var/lib/grafana/dashboards:ro |
| 78 | + networks: |
| 79 | + - observability |
| 80 | + |
| 81 | +volumes: |
| 82 | + prometheus_data: |
| 83 | + loki_data: |
| 84 | + tempo_data: |
| 85 | + grafana_data: |
| 86 | + |
| 87 | +networks: |
| 88 | + observability: |
| 89 | + driver: bridge |
0 commit comments