<commit_before>version: '2'
services:
  zookeeper:
    image: wurstmeister/zookeeper
    ports:
      - "2181:2181"
    labels:
      container_group: service
  kafka:
    image: wurstmeister/kafka
    links:
      - zookeeper
    ports:
      - "9092:9092"
    environment:
      KAFKA_ADVERTISED_HOST_NAME: kafka
      KAFKA_CREATE_TOPICS: "invoices:1:1"
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    labels:
      container_group: service
  db:
    image: postgres:9
    volumes:
      - ./scripts/postgres:/docker-entrypoint-initdb.d
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: <PASSWORD>
    labels:
      container_group: service
  invoices:
    build:
      context: ./services
      dockerfile: ./invoices/Dockerfile
    image: agavelab/ah-microservices-users
    links:
      - kafka
      - db
    environment:
      PORT: 80
      KAFKA_HOST: kafka
      KAFKA_PORT: 9092
      DB_HOST: db
      DB_USER: postgres
      DB_PASSWORD: <PASSWORD>
      DB_NAME: invoices
    labels:
      container_group: service<commit_msg>Corrected invoices image name and changed Kafka advertised host<commit_after>version: '2'
services:
  zookeeper:
    image: wurstmeister/zookeeper
    ports:
      - "2181:2181"
    labels:
      container_group: service
  kafka:
    image: wurstmeister/kafka
    links:
      - zookeeper
    ports:
      - "9092:9092"
    environment:
      KAFKA_ADVERTISED_HOST_NAME: 192.168.0.198
      KAFKA_ADVERTISED_PORT: 9092
      KAFKA_CREATE_TOPICS: "invoice:1:1, user:1:1"
      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    labels:
      container_group: service
  db:
    image: postgres:9
    volumes:
      - ./scripts/postgres:/docker-entrypoint-initdb.d
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: <PASSWORD>
    labels:
      container_group: service
  invoices:
    build:
      context: ./services
      dockerfile: ./invoices/Dockerfile
    image: agavelab/ah-microservices-invoices
    links:
      - kafka
      - db
    environment:
      PORT: 80
      KAFKA_HOST: 192.168.0.198
      KAFKA_PORT: 9092
      DB_HOST: db
      DB_USER: postgres
      DB_PASSWORD: <PASSWORD>
      DB_NAME: invoices
    labels:
      container_group: service
{'fraction_non_alphanumeric': 0.08614864864864864, 'fraction_numerical': 0.036317567567567564, 'mean_word_length': 2.3650568181818183, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5729308', 'n_tokens_mistral': 917, 'n_tokens_neox': 836, 'n_words': 154}