<commit_before>version: "2"

services:
  db:
    image: mysql:5.6
    container_name: db
    environment:
      MYSQL_ROOT_PASSWORD: ""
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
      MYSQL_USER: "discov001"
      MYSQL_PASSWORD: "password"
      MYSQL_DATABASE: "discovery"
    ports:
      - "3306:3306"
    volumes:
      - ./.dev/volumes/db:/var/lib/mysql

  es:
    image: elasticsearch:1.5.2
    container_name: es
    volumes:
      - ./.dev/volumes/es/data:/usr/share/elasticsearch/data
      - ./.dev/volumes/es/logs:/usr/share/elasticsearch/logs
      - ./.dev/volumes/es/plugins:/usr/share/elasticsearch/plugins
    ports:
      - "9200:9200"
      - "9300:9300"

  memcache:
    image: memcached:1.4.24
    container_name: memcache

  course-discovery:
    # Uncomment this line to use the official course-discovery base image
    image: edxops/course-discovery:latest

    # Uncomment the next two lines to build from a local configuration repo
    # build: ../configuration/docker/build/discovery/

    container_name: course-discovery
    volumes:
      - .:/edx/app/discovery/discovery
    command: /edx/app/discovery/devstack.sh start<commit_msg>Added Docker volumes for media and static files directories (#325)<commit_after>version: "2"

services:
  db:
    image: mysql:5.6
    container_name: db
    environment:
      MYSQL_ROOT_PASSWORD: ""
      MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
      MYSQL_USER: "discov001"
      MYSQL_PASSWORD: "password"
      MYSQL_DATABASE: "discovery"
    ports:
      - "3306:3306"
    volumes:
      - ./.dev/volumes/db:/var/lib/mysql

  es:
    image: elasticsearch:1.5.2
    container_name: es
    volumes:
      - ./.dev/volumes/es/data:/usr/share/elasticsearch/data
      - ./.dev/volumes/es/logs:/usr/share/elasticsearch/logs
      - ./.dev/volumes/es/plugins:/usr/share/elasticsearch/plugins
    ports:
      - "9200:9200"
      - "9300:9300"

  memcache:
    image: memcached:1.4.24
    container_name: memcache

  course-discovery:
    # Uncomment this line to use the official course-discovery base image
    image: edxops/course-discovery:latest

    # Uncomment the next two lines to build from a local configuration repo
    # build: ../configuration/docker/build/discovery/

    container_name: course-discovery
    volumes:
      - .:/edx/app/discovery/discovery
      - ./course_discovery/media:/edx/var/discovery/media
      - ./course_discovery/assets:/edx/var/discovery/staticfiles
    command: /edx/app/discovery/devstack.sh start
{'fraction_non_alphanumeric': 0.11729383506805445, 'fraction_numerical': 0.030824659727782224, 'mean_word_length': 2.6535087719298245, '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': '464351', 'n_tokens_mistral': 902, 'n_tokens_neox': 841, 'n_words': 156}