<commit_before>version: "3"
services:

  app:
    image: wign:app
    volumes:
      - "./:/var/www"
    ports:
      - "8080:80"
    env_file:
      - ./app.env

  db:
    image: "mysql:5.7"
    environment:
      - "MYSQL_ROOT_PASSWORD=root"
      - "MYSQL_DATABASE=db"
      - "MYSQL_USER=user"
      - "MYSQL_PASSWORD=<PASSWORD>"

  migrater:
    image: wign:app
    env_file:
      - ./app.env
    # Waiting for DB to actually initialize. TODO: Consider more graceful solution
    command: "sh -c 'sleep 30 ; php artisan migrate'"

  aws:
    volumes:
      - "./:/src"
    environment:
      - AWS_CREDENTIAL_FILE=/src/aws_credentials.txt
    working_dir: "/src"
    build:
      context: ./
      dockerfile: Dockerfile.aws<commit_msg>Added .ssh to aws container and disabled modsecurity locally<commit_after>version: "3"
services:

  app:
    image: wign:app
    volumes:
      - "./:/var/www"
      - "./apache/000-default.conf:/etc/apache2/sites-available/000-default.conf"
      - "./apache/activated_rules:/usr/share/modsecurity-crs/activated_rules"
    ports:
      - "8080:80"
    env_file:
      - ./app.env


  db:
    image: "mysql:5.7"
    environment:
      - "MYSQL_ROOT_PASSWORD=root"
      - "MYSQL_DATABASE=db"
      - "MYSQL_USER=user"
      - "MYSQL_PASSWORD=<PASSWORD>"

  migrater:
    image: wign:app
    env_file:
      - ./app.env
    # Waiting for DB to actually initialize. TODO: Consider more graceful solution
    command: "sh -c 'sleep 30 ; php artisan migrate'"

  aws:
    volumes:
      - "./:/src"
      - "./.ssh:/root/.ssh"
    environment:
      - AWS_CREDENTIAL_FILE=/src/aws_credentials.txt
    working_dir: "/src"
    build:
      context: ./
      dockerfile: Dockerfile.aws
{'fraction_non_alphanumeric': 0.13546511627906976, 'fraction_numerical': 0.01686046511627907, 'mean_word_length': 2.1636029411764706, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2714269', 'n_tokens_mistral': 647, 'n_tokens_neox': 611, 'n_words': 120}