<commit_before>version: '2'
# This Composefile uses named volumes for simplicity. The actual data is saved to /var/lib/docker/volumes/$VOLUME/_data.
# Build args are passed to the Dockerfile to determine the container's purpose.

services:
  bro-master:
    networks:
      - beemaster-demo
    build: 
      context: ./mp-ids-bro
      args:
        PURPOSE: master
    command: ["/bro/scripts_master/"]
    volumes:
      - /var/beemaster/log/bro-master:/usr/local/bro/logs

  bro-slave-1:
    networks:
      - beemaster-demo
    build: 
      context: ./mp-ids-bro
      args:
        PURPOSE: slave
    command: ["/bro/scripts_slave/"]
    volumes:
      - /var/beemaster/log/bro-slave-1:/usr/local/bro/logs
    depends_on:
      - bro-master

  bro-slave-2:
    networks:
      - beemaster-demo
    build:
      context: ./mp-ids-bro
      args:
        PURPOSE: slave
    command: ["/bro/scripts_slave/"]
    volumes:
      - /var/beemaster/log/bro-slave-2:/usr/local/bro/logs
    depends_on:
      - bro-master

networks:
  beemaster-demo:<commit_msg>use environment variabels for compose setup<commit_after>version: '2'
# This Composefile uses named volumes for simplicity. The actual data is saved to /var/lib/docker/volumes/$VOLUME/_data.
# Build args are passed to the Dockerfile to determine the container's purpose.

services:
  bro-master:
    build: 
      context: ./mp-ids-bro
      args:
        PURPOSE: master
    environment:
      - MASTER_PUBLIC_PORT=9999
      - MASTER_PUBLIC_IP=172.16.31.10
    ports:
      - 9999:9999
    command: ["/bro/scripts_master/"]
    volumes:
      - /var/beemaster/log/bro-master:/usr/local/bro/logs

  bro-slave-1:
    build: 
      context: ./mp-ids-bro
      args:
        PURPOSE: slave
    environment:
      - SLAVE_PUBLIC_PORT=9991
      - SLAVE_PUBLIC_IP=172.16.31.10
      - MASTER_PUBLIC_PORT=9999
      - MASTER_PUBLIC_IP=172.16.31.10
    ports:
      - 9991:9999
    command: ["/bro/scripts_slave/"]
    volumes:
      - /var/beemaster/log/bro-slave-1:/usr/local/bro/logs
    depends_on:
      - bro-master

  bro-slave-2:
    build:
      context: ./mp-ids-bro
      args:
        PURPOSE: slave
    environment:
      - SLAVE_PUBLIC_PORT=9992
      - SLAVE_PUBLIC_IP=172.16.31.10
      - MASTER_PUBLIC_PORT=9999
      - MASTER_PUBLIC_IP=172.16.31.10
    ports:
      - 9992:9999
    command: ["/bro/scripts_slave/"]
    volumes:
      - /var/beemaster/log/bro-slave-2:/usr/local/bro/logs
    depends_on:
      - bro-master
{'fraction_non_alphanumeric': 0.11998394863563402, 'fraction_numerical': 0.039727126805778494, 'mean_word_length': 2.1358490566037736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 5, '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': '3076085', 'n_tokens_mistral': 959, 'n_tokens_neox': 896, 'n_words': 163}