<commit_before>version: "3"
services:
  mongo:
    image: mongo
    volumes:
      - mongo:/data/db
    networks: 
      backend:
        aliases:
          - mongo
  
  api:
    build:
      context: ./
      dockerfile: Dockerfile.builder
    image: "${API_IMAGE}:${TAG}"
    volumes:
      - ./logs:/usr/src/app/logs
      - node_modules:/usr/src/app/node_modules
    networks: 
      backend:
        aliases:
          - api
      frontend:
        aliases:
          - api 
    depends_on:
      - mongo
    ports:
      - "3000:3000"

  client:
    build:
      context: ./client
      dockerfile: Dockerfile
    image: "${CLIENT_IMAGE}:${TAG}"
    networks: 
      - frontend
    depends_on:
      - api
    ports:
      - "80:80"

networks: 
  backend:
  frontend:<commit_msg>(ci) added docker compose cache from<commit_after>version: "3"
services:
  mongo:
    image: mongo
    volumes:
      - mongo:/data/db
    networks: 
      backend:
        aliases:
          - mongo
  
  api:
    build:
      context: ./
      dockerfile: Dockerfile.builder
      cache_from:
        - ${API_IMAGE}
    image: "${API_IMAGE}:${TAG}"
    volumes:
      - ./logs:/usr/src/app/logs
      - node_modules:/usr/src/app/node_modules
    networks: 
      backend:
        aliases:
          - api
      frontend:
        aliases:
          - api 
    depends_on:
      - mongo
    ports:
      - "3000:3000"

  client:
    build:
      context: ./client
      dockerfile: Dockerfile
      cache_from:
        - ${CLIENT_IMAGE}
    image: "${CLIENT_IMAGE}:${TAG}"
    networks: 
      - frontend
    depends_on:
      - api
    ports:
      - "80:80"

networks: 
  backend:
  frontend:
{'fraction_non_alphanumeric': 0.11680572109654351, 'fraction_numerical': 0.015494636471990465, 'mean_word_length': 1.543939393939394, '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': '5600664', 'n_tokens_mistral': 597, 'n_tokens_neox': 569, 'n_words': 108}