|
| 1 | + |
| 2 | +networks: |
| 3 | + metrics: |
| 4 | + driver: bridge |
| 5 | + |
| 6 | +volumes: |
| 7 | + grafana-storage: |
| 8 | + |
| 9 | +services: |
| 10 | + agent-with-nginx-plus-and-nap: |
| 11 | + image: ${AGENT_IMAGE_WITH_NGINX_PLUS_AND_NAP} |
| 12 | + container_name: mock-collector-agent-with-nginx-plus-and-nap |
| 13 | + volumes: |
| 14 | + - ../nginx-agent.conf:/etc/nginx-agent/nginx-agent.conf |
| 15 | + - ../nginx-plus-and-nap/nginx.conf:/etc/nginx/nginx.conf |
| 16 | + - ../nginx-plus-and-nap/conf.d/default.conf:/etc/nginx/conf.d/default.conf |
| 17 | + networks: |
| 18 | + - metrics |
| 19 | + |
| 20 | + agent-with-nginx-plus: |
| 21 | + image: ${AGENT_IMAGE_WITH_NGINX_PLUS} |
| 22 | + container_name: mock-collector-agent-with-nginx-plus |
| 23 | + volumes: |
| 24 | + - ../nginx-agent.conf:/etc/nginx-agent/nginx-agent.conf |
| 25 | + - ../nginx-plus/nginx.conf:/etc/nginx/nginx.conf |
| 26 | + - ../nginx-plus/conf.d/default.conf:/etc/nginx/conf.d/default.conf |
| 27 | + networks: |
| 28 | + - metrics |
| 29 | + |
| 30 | + agent-with-nginx-oss: |
| 31 | + image: ${AGENT_IMAGE_WITH_NGINX_OSS} |
| 32 | + container_name: mock-collector-agent-with-nginx-oss |
| 33 | + volumes: |
| 34 | + - ../nginx-agent.conf:/etc/nginx-agent/nginx-agent.conf |
| 35 | + - ../nginx-oss:/etc/nginx/ |
| 36 | + networks: |
| 37 | + - metrics |
| 38 | + |
| 39 | + otel-collector: |
| 40 | + image: mock-collector |
| 41 | + container_name: mock-collector-otel-collector |
| 42 | + ports: |
| 43 | + - 4320:4317 |
| 44 | + - 9775:9090 |
| 45 | + volumes: |
| 46 | + - ../otel-collector.yaml:/etc/otel-collector.yaml |
| 47 | + networks: |
| 48 | + - metrics |
| 49 | + |
| 50 | + prometheus: |
| 51 | + image: prom/prometheus:latest |
| 52 | + container_name: mock-collector-prometheus |
| 53 | + restart: unless-stopped |
| 54 | + ports: |
| 55 | + - "9090:9090" |
| 56 | + volumes: |
| 57 | + - ../prometheus.yaml:/etc/prometheus/prometheus.yml |
| 58 | + command: |
| 59 | + - '--config.file=/etc/prometheus/prometheus.yml' |
| 60 | + networks: |
| 61 | + - metrics |
| 62 | + |
| 63 | + grafana: |
| 64 | + image: grafana/grafana:latest |
| 65 | + container_name: mock-collector-grafana |
| 66 | + restart: unless-stopped |
| 67 | + environment: |
| 68 | + GF_INSTALL_PLUGINS: "grafana-lokiexplore-app" |
| 69 | + ports: |
| 70 | + - "3002:3000" |
| 71 | + volumes: |
| 72 | + - grafana-storage:/var/lib/grafana |
| 73 | + - ../grafana/provisioning/datasources:/etc/grafana/provisioning/datasources |
| 74 | + - ../grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards |
| 75 | + - ../grafana/provisioning/plugins:/etc/grafana/provisioning/plugins |
| 76 | + - ../grafana/provisioning/dashboards:/var/lib/grafana/dashboards |
| 77 | + networks: |
| 78 | + - metrics |
| 79 | + |
| 80 | + loki: |
| 81 | + image: grafana/loki:latest |
| 82 | + container_name: mock-collector-loki |
| 83 | + restart: unless-stopped |
| 84 | + ports: |
| 85 | + - "3100:3100" |
| 86 | + volumes: |
| 87 | + - ../loki-config.yaml:/etc/loki/local-config.yaml |
| 88 | + command: -config.file=/etc/loki/local-config.yaml |
| 89 | + networks: |
| 90 | + - metrics |
0 commit comments