<commit_before># Docker Compose definition for easy development environment setup
# @I Document nginx proxy requirement for docker-compose development environment
version: '2'

services:

  # Where the main development happens.
  development:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-go
    image: ms_development

    # Run.
    command: sleep infinity
    container_name: ms_development

    # Configure.
    environment:
      - VIRTUAL_HOST=trigger.mantis-shrimp.localhost
      - VIRTUAL_PORT=8888
      - VIRTUAL_NETWORK=nginx-proxy

    links:
      - elasticsearch
      - trigger_api:ms-trigger-api

    networks:
      - proxy-tier

    volumes:
      - ../../../..:/go

  # Service that runs the Trigger API. To be used when developing a consumer.
  trigger_api:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-go
    image: ms_trigger_api

    # Run.
    command: /go/bin/ms_trigger_api
    container_name: ms_trigger_api

    # Configure.
    links:
      - elasticsearch

    networks:
      - proxy-tier

    volumes:
      - ../../../..:/go

  # Databases.
  elasticsearch:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-elasticsearch

    image: ms_elasticsearch

    # Run.
    container_name: ms_elasticsearch

    # Configure.
    environment:
      - ES_JAVA_OPTS=-Xms1g -Xmx1g

    # 2GB memory limit - otherwise elasticsearch will eat up all memory.
    # It will complain and not start if provided less.
    mem_limit: 2147483648

    networks:
      - proxy-tier

    volumes:
      - ${DOCKER_COMPOSE_VOLUMES_DIR}/src/ms/elasticsearch:/usr/share/elasticsearch/data

  # Development tools.
  kibana:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-kibana

    image: ms_kibana

    # Run.
    container_name: ms_kibana

    # Configure.
    environment:
      - VIRTUAL_HOST=kibana.mantis-shrimp.localhost
      - VIRTUAL_PORT=5601
      - VIRTUAL_NETWORK=nginx-proxy
<commit_msg>docker Corrected docker data path to match the name of the project<commit_after># Docker Compose definition for easy development environment setup
# @I Document nginx proxy requirement for docker-compose development environment
version: '2'

services:

  # Where the main development happens.
  development:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-go
    image: ms_development

    # Run.
    command: sleep infinity
    container_name: ms_development

    # Configure.
    environment:
      - VIRTUAL_HOST=trigger.mantis-shrimp.localhost
      - VIRTUAL_PORT=8888
      - VIRTUAL_NETWORK=nginx-proxy

    links:
      - elasticsearch
      - trigger_api:ms-trigger-api

    networks:
      - proxy-tier

    volumes:
      - ../../../..:/go

  # Service that runs the Trigger API. To be used when developing a consumer.
  trigger_api:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-go
    image: ms_trigger_api

    # Run.
    command: /go/bin/ms_trigger_api
    container_name: ms_trigger_api

    # Configure.
    links:
      - elasticsearch

    networks:
      - proxy-tier

    volumes:
      - ../../../..:/go

  # Databases.
  elasticsearch:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-elasticsearch

    image: ms_elasticsearch

    # Run.
    container_name: ms_elasticsearch

    # Configure.
    environment:
      - ES_JAVA_OPTS=-Xms1g -Xmx1g

    # 2GB memory limit - otherwise elasticsearch will eat up all memory.
    # It will complain and not start if provided less.
    mem_limit: 2147483648

    networks:
      - proxy-tier

    volumes:
      - ${DOCKER_COMPOSE_VOLUMES_DIR}/src/go-mantis-shrimp/elasticsearch:/usr/share/elasticsearch/data

  # Development tools.
  kibana:
    # Build.
    build:
      context: ./docker
      dockerfile: Dockerfile-kibana

    image: ms_kibana

    # Run.
    container_name: ms_kibana

    # Configure.
    environment:
      - VIRTUAL_HOST=kibana.mantis-shrimp.localhost
      - VIRTUAL_PORT=5601
      - VIRTUAL_NETWORK=nginx-proxy

{'fraction_non_alphanumeric': 0.08682997817123454, 'fraction_numerical': 0.010671840892553965, 'mean_word_length': 2.2626582278481013, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '872329', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1278, 'n_words': 307}