<commit_before>version: '3'
services:

  db:
    container_name: data-quality-db
    restart: always
    image: data-quality-db
    build:
      context: ./db
    volumes:
      - data-quality-db-volume:/var/lib/postgresql/data
    env_file:
        - ./.env
    expose:
      - 5432
    ports:
      - 5432:5432
    networks:
      - data-quality-network

  graphql:
    container_name: data-quality-graphql
    restart: always
    image: graphile/postgraphile
    depends_on:
      - db
    env_file:
      - ./.env
    expose:
      - 5433
    ports:
      - 5433:5433
    command: ["postgraphile", "--connection", "${DATABASE_URL}", "--host", "0.0.0.0", "--port", "5433", "--schema", "base"]
    links:
      - db
    networks:
      - data-quality-network

  scripts:
    container_name: data-quality-scripts
    restart: always
    image: data-quality-scripts
    build:
      context: ./scripts
    volumes:
       - $SCRIPT_VOLUME_PATH:/srv/scripts
    expose:
      - 5434
    ports:
      - 5434:5434
    tty: true
    depends_on:
      - graphql
    links:
      - graphql
    networks:
      - data-quality-network

  api:
    container_name: data-quality-api
    restart: always
    image: data-quality-api
    build:
      context: ./api
    volumes:
      - $API_VOLUME_PATH:/srv/api/
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      FLASK_APP: api.py
      FLASK_RUN_PORT: 5435
      FLASK_DEBUG: 1
    expose:
      - 5435
    ports:
      - 5435:5435
    command: ["flask", "run", "--host=0.0.0.0"]
    depends_on:
      - scripts
    links:
      - graphql
    networks:
      - data-quality-network

  app-dev:
    container_name: data-quality-app-dev
    restart: always
    image: data-quality-app-dev
    build:
      context: ./app
      dockerfile: Dockerfile-dev
    volumes:
      - $APP_VOLUME_PATH:/usr/src/app
    env_file:
      - ./.env
    expose:
      - 5499
    ports:
      - 5499:3000
    depends_on:
      - api
      - graphql
    links:
      - api
      - graphql
    networks:
      - data-quality-network

  app-prod:
    container_name: data-quality-app-prod
    build:
      context: ./app
      dockerfile: Dockerfile-prod
    ports:
      - '80:80'

networks:
  data-quality-network:
volumes:
  data-quality-db-volume:
    external: true<commit_msg>Remove unnecessary expose argument in docker-compose.yml<commit_after>version: '3'
services:

  db:
    container_name: data-quality-db
    restart: always
    image: data-quality-db
    build:
      context: ./db
    volumes:
      - data-quality-db-volume:/var/lib/postgresql/data
    env_file:
        - ./.env
    ports:
      - 5432:5432
    networks:
      - data-quality-network

  graphql:
    container_name: data-quality-graphql
    restart: always
    image: graphile/postgraphile
    depends_on:
      - db
    env_file:
      - ./.env
    ports:
      - 5433:5433
    command: ["postgraphile", "--connection", "${DATABASE_URL}", "--host", "0.0.0.0", "--port", "5433", "--schema", "base"]
    links:
      - db
    networks:
      - data-quality-network

  scripts:
    container_name: data-quality-scripts
    restart: always
    image: data-quality-scripts
    build:
      context: ./scripts
    volumes:
       - $SCRIPT_VOLUME_PATH:/srv/scripts
    ports:
      - 5434:5434
    tty: true
    depends_on:
      - graphql
    links:
      - graphql
    networks:
      - data-quality-network

  api:
    container_name: data-quality-api
    restart: always
    image: data-quality-api
    build:
      context: ./api
    volumes:
      - $API_VOLUME_PATH:/srv/api/
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      FLASK_APP: api.py
      FLASK_RUN_PORT: 5435
      FLASK_DEBUG: 1
    ports:
      - 5435:5435
    command: ["flask", "run", "--host=0.0.0.0"]
    depends_on:
      - scripts
    links:
      - graphql
    networks:
      - data-quality-network

  app-dev:
    container_name: data-quality-app-dev
    restart: always
    image: data-quality-app-dev
    build:
      context: ./app
      dockerfile: Dockerfile-dev
    volumes:
      - $APP_VOLUME_PATH:/usr/src/app
    env_file:
      - ./.env
    ports:
      - 5499:3000
    depends_on:
      - api
      - graphql
    links:
      - api
      - graphql
    networks:
      - data-quality-network

  app-prod:
    container_name: data-quality-app-prod
    build:
      context: ./app
      dockerfile: Dockerfile-prod
    ports:
      - '80:80'

networks:
  data-quality-network:
volumes:
  data-quality-db-volume:
    external: true
{'fraction_non_alphanumeric': 0.12017543859649123, 'fraction_numerical': 0.031578947368421054, 'mean_word_length': 1.815432098765432, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '66452', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1598, 'n_words': 302}