<commit_before>version: '2'
services:
  redis:
    image: redis:3
    container_name: redis-mosquitto
    ports:
      - "6379:6379"
    volumes:
      - ./mosquitto/redis_data:/data

  mosquitto:
    image: jllopis/mosquitto:v1.4.10
    container_name: mosquitto
    ports:
      - "1883:1883"
      - "9883:9883"
    depends_on:
      - redis
    volumes:
      - ./mosquitto/etc/mosquitto:/etc/mosquitto
      - ./mosquitto/etc/mosquitto.d:/etc/mosquitto.d
      - ./mosquitto/var/lib/mosquitto:/var/lib/mosquitto
      - ./mosquitto/auth-plugin.conf:/etc/mosquitto.d/auth-plugin.conf

  influxdb:
    image: influxdb:latest
    container_name: influxdb
    ports:
      - "8083:8083"
      - "8086:8086"
      - "8090:8090"
    command: -config /etc/influxdb/influxdb.conf
    volumes:
      - ./influxdb:/var/lib/influxdb
      - ./influxdb.conf:/etc/influxdb/influxdb.conf:ro

  cadvisor:
    image: google/cadvisor:latest
    container_name: cadvisor
    ports:
      - "8080:8080"
    command: -storage_driver=influxdb -storage_driver_host=influxdb:8086
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run:rw
      - /sys:/sys:ro
      - /var/lib/docker/:/var/lib/docker:ro
    depends_on:
      - influxdb

  telegraf:
    image: telegraf:latest
    container_name: telegraf
    depends_on:
      - influxdb
      - mosquitto
    volumes:
      - ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
      - /var/run/:/var/run:rw

  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    ports:
      - "3000:3000"
    depends_on:
      - influxdb
    volumes:
      - ./grafana:/var/lib/grafana
      - ./grafana_config:/etc/grafana/
<commit_msg>Removed CAdvisor container as this is now collected by Telegraf.<commit_after>version: '2'
services:
  redis:
    image: redis:3
    container_name: redis-mosquitto
    ports:
      - "6379:6379"
    volumes:
      - ./mosquitto/redis_data:/data

  mosquitto:
    image: jllopis/mosquitto:v1.4.10
    container_name: mosquitto
    ports:
      - "1883:1883"
      - "9883:9883"
    depends_on:
      - redis
    volumes:
      - ./mosquitto/etc/mosquitto:/etc/mosquitto
      - ./mosquitto/etc/mosquitto.d:/etc/mosquitto.d
      - ./mosquitto/var/lib/mosquitto:/var/lib/mosquitto
      - ./mosquitto/auth-plugin.conf:/etc/mosquitto.d/auth-plugin.conf

  influxdb:
    image: influxdb:latest
    container_name: influxdb
    ports:
      - "8083:8083"
      - "8086:8086"
      - "8090:8090"
    command: -config /etc/influxdb/influxdb.conf
    volumes:
      - ./influxdb:/var/lib/influxdb
      - ./influxdb.conf:/etc/influxdb/influxdb.conf:ro

  telegraf:
    image: telegraf:latest
    container_name: telegraf
    depends_on:
      - influxdb
      - mosquitto
    volumes:
      - ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
      - /var/run/:/var/run:rw

  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    ports:
      - "3000:3000"
    depends_on:
      - influxdb
    volumes:
      - ./grafana:/var/lib/grafana
      - ./grafana_config:/etc/grafana/

{'fraction_non_alphanumeric': 0.1314416177429876, 'fraction_numerical': 0.04435746901500326, 'mean_word_length': 2.1392016376663254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3174884', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1202, 'n_words': 156}