<commit_before>version: '2.1'
services:
  mongo:
    image: mongo:3.2.11
    volumes:
      - mongo_data:/data/db
    restart: always
    healthcheck:
      test: "exit 0"
  redis:
    image: redis:3.2.10
    restart: always
    healthcheck:
      test: "exit 0"
  solr:
    image: openconceptlab/oclsolr:${ENVIRONMENT-production}
    volumes:
      - solr_data:/opt/solr/server/solr/collection1/data
    restart: always
    healthcheck:
      test: "exit 0"
  api:
    image: openconceptlab/oclapi:${ENVIRONMENT-production}
    depends_on:
      - mongo
      - solr
      - redis
      - celery
    links:
      - "mongo:mongo.openconceptlab.org"
      - "redis:redis.openconceptlab.org"
      - "solr:solr.openconceptlab.org"
    ports:
      - "8000:8000"
    environment:
      - WAIT_FOR=mongo.openconceptlab.org:27017,redis.openconceptlab.org:6379,solr.openconceptlab.org:8983
      - ENVIRONMENT=${ENVIRONMENT-production}
      - ROOT_PASSWORD=${ROOT_PASSWORD-<PASSWORD>}
      - OCL_API_TOKEN=${OCL_API_TOKEN-<PASSWORD>}
      - IMPORT_DEMO_DATA=${IMPORT_DEMO_DATA-false}
      - SECRET_KEY
      - SENTRY_DSN_KEY
      - EMAIL_HOST_PASSWORD
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_STORAGE_BUCKET_NAME
    restart: always
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/admin/authtoken/token/"]
      interval: 1m30s
      timeout: 10s
      retries: 3
  celery:
    image: openconceptlab/oclapi:${ENVIRONMENT-production}
    command: bash run_celery.sh ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY} ${AWS_STORAGE_BUCKET_NAME}
    links:
      - "mongo:mongo.openconceptlab.org"
      - "redis:redis.openconceptlab.org"
      - "solr:solr.openconceptlab.org"
    environment:
      - C_FORCE_ROOT=1
      - SECRET_KEY
      - SENTRY_DSN_KEY
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_STORAGE_BUCKET_NAME
    restart: always
    healthcheck:
      test: "exit 0"
  flower:
    image: openconceptlab/oclapi:${ENVIRONMENT-production}
    command: bash run_flower.sh
    ports:
      - "5555:5555"
    depends_on:
      - celery
    links:
      - "redis:redis.openconceptlab.org"
    environment:
      - C_FORCE_ROOT=1
      - SECRET_KEY
      - ROOT_PASSWORD=${ROOT_PASSWORD-<PASSWORD>}
    restart: always
    healthcheck:
      test: "exit 0"
  backup:
    image: openmrs/cron-backup
    volumes:
      - mongo_data:/mongo_data
      - solr_data:/solr_data
      - ${BACKUP_DIR-./backups}:/backup
    environment:
      - DIRS=/mongo_data:mongo,/solr_data:solr
      - SCHEDULE=0 0 * * *
    restart: always
    healthcheck:
      test: "exit 0"
volumes:
  mongo_data:
  solr_data:<commit_msg>Adding link to api from celery<commit_after>version: '2.1'
services:
  mongo:
    image: mongo:3.2.11
    volumes:
      - mongo_data:/data/db
    restart: always
    healthcheck:
      test: "exit 0"
  redis:
    image: redis:3.2.10
    restart: always
    healthcheck:
      test: "exit 0"
  solr:
    image: openconceptlab/oclsolr:${ENVIRONMENT-production}
    volumes:
      - solr_data:/opt/solr/server/solr/collection1/data
    restart: always
    healthcheck:
      test: "exit 0"
  api:
    image: openconceptlab/oclapi:${ENVIRONMENT-production}
    depends_on:
      - mongo
      - solr
      - redis
    links:
      - "mongo:mongo.openconceptlab.org"
      - "redis:redis.openconceptlab.org"
      - "solr:solr.openconceptlab.org"
    ports:
      - "8000:8000"
    environment:
      - WAIT_FOR=mongo.openconceptlab.org:27017,redis.openconceptlab.org:6379,solr.openconceptlab.org:8983
      - ENVIRONMENT=${ENVIRONMENT-production}
      - ROOT_PASSWORD=${ROOT_PASSWORD-Root<PASSWORD>}
      - OCL_API_TOKEN=${OCL_API_TOKEN-<PASSWORD>}
      - IMPORT_DEMO_DATA=${IMPORT_DEMO_DATA-false}
      - SECRET_KEY
      - SENTRY_DSN_KEY
      - EMAIL_HOST_PASSWORD
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_STORAGE_BUCKET_NAME
    restart: always
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8000/admin/authtoken/token/"]
      interval: 1m30s
      timeout: 10s
      retries: 3
  celery:
    image: openconceptlab/oclapi:${ENVIRONMENT-production}
    command: bash run_celery.sh ${AWS_ACCESS_KEY_ID} ${AWS_SECRET_ACCESS_KEY} ${AWS_STORAGE_BUCKET_NAME}
    links:
      - "mongo:mongo.openconceptlab.org"
      - "redis:redis.openconceptlab.org"
      - "solr:solr.openconceptlab.org"
      - "api:api.openconceptlab.org"
    environment:
      - C_FORCE_ROOT=1
      - SECRET_KEY
      - SENTRY_DSN_KEY
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_STORAGE_BUCKET_NAME
    restart: always
    healthcheck:
      test: "exit 0"
  flower:
    image: openconceptlab/oclapi:${ENVIRONMENT-production}
    command: bash run_flower.sh
    ports:
      - "5555:5555"
    depends_on:
      - celery
    links:
      - "redis:redis.openconceptlab.org"
    environment:
      - C_FORCE_ROOT=1
      - SECRET_KEY
      - ROOT_PASSWORD=${ROOT_PASSWORD-Root<PASSWORD>}
    restart: always
    healthcheck:
      test: "exit 0"
  backup:
    image: openmrs/cron-backup
    volumes:
      - mongo_data:/mongo_data
      - solr_data:/solr_data
      - ${BACKUP_DIR-./backups}:/backup
    environment:
      - DIRS=/mongo_data:mongo,/solr_data:solr
      - SCHEDULE=0 0 * * *
    restart: always
    healthcheck:
      test: "exit 0"
volumes:
  mongo_data:
  solr_data:

{'fraction_non_alphanumeric': 0.11215816703621581, 'fraction_numerical': 0.022172949002217297, 'mean_word_length': 2.526384364820847, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2439408', 'n_tokens_mistral': 2165, 'n_tokens_neox': 2072, 'n_words': 288}