<commit_before>version: '3.0'
services:
  postgres:
      image: postgres
      container_name: postgres
      environment:
          - POSTGRES_USER=${POSTGRES_USER}
          - POSTGRES_PASSWORD=${POSTGRES_PASS}
          - POSTGRES_DB=airflow

  airflow-newspipe:
    build: 
      context: airflow-newspipe-docker/
      dockerfile: Dockerfile
      args:
        - POSTGRES_USER=${POSTGRES_USER}
        - POSTGRES_PASS=${POSTGRES_PASS}
    container_name: airflow_newspipe
    ports:
      - "8080:8080"
    volumes:
      - ./dags:/airflow/dags
      - ./output:/output
      - ./logs:/airflow/logs
    environment:
      - MONGO_ROOT_USER=${MONGO_ROOT_USER}
      - MONGO_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
      - MONGO_DATABASE_NAME=NewsPipe
    depends_on:
      - "postgres"
      - "mongo"
    restart: always
    
  mongo:
    build: mongo-docker/.
    container_name: mongo
    environment:
      - MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER}
      - MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
      - MONGO_INITDB_DATABASE=NewsPipe
    ports:
      - "127.0.0.1:27017:27017"
    volumes:
      - ./mongodata:/data
    command: --bind_ip 127.0.0.1,0.0.0.0

  mongo-express:
    image: mongo-express
    container_name: mongo_express
    environment:
      - ME_CONFIG_MONGODB_SERVER=mongo<commit_msg>bind 0.0.0.0 but only using 127.0.0.1 in docker compose<commit_after>version: '3.0'
services:
  postgres:
      image: postgres
      container_name: postgres
      environment:
          - POSTGRES_USER=${POSTGRES_USER}
          - POSTGRES_PASSWORD=${POSTGRES_PASS}
          - POSTGRES_DB=airflow

  airflow-newspipe:
    build: 
      context: airflow-newspipe-docker/
      dockerfile: Dockerfile
      args:
        - POSTGRES_USER=${POSTGRES_USER}
        - POSTGRES_PASS=${POSTGRES_PASS}
    container_name: airflow_newspipe
    ports:
      - "8080:8080"
    volumes:
      - ./dags:/airflow/dags
      - ./output:/output
      - ./logs:/airflow/logs
    environment:
      - MONGO_ROOT_USER=${MONGO_ROOT_USER}
      - MONGO_ROOT_PASSWORD=${MONGO_<PASSWORD>}
      - MONGO_DATABASE_NAME=NewsPipe
    depends_on:
      - "postgres"
      - "mongo"
    restart: always
    
  mongo:
    build: mongo-docker/.
    container_name: mongo
    environment:
      - MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USER}
      - MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
      - MONGO_INITDB_DATABASE=NewsPipe
    ports:
      - "127.0.0.1:27017:27017"
    volumes:
      - ./mongodata:/data
    command: --bind_ip 0.0.0.0

  mongo-express:
    image: mongo-express
    container_name: mongo_express
    environment:
      - ME_CONFIG_MONGODB_SERVER=mongo
{'fraction_non_alphanumeric': 0.10593062290190228, 'fraction_numerical': 0.02834763148079075, 'mean_word_length': 2.4122137404580153, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, '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': '3053374', 'n_tokens_mistral': 1057, 'n_tokens_neox': 974, 'n_words': 129}