<commit_before>version: "2.4"

services:
    app:
        build:
            context: .
            cache_from: [ghcr.io/forkcms/forkcms:latest]
        working_dir: /var/www/html
        ports:
            - "80:80"
            - "443:443"
        depends_on:
            - db
        env_file: ./var/docker/.env
        volumes:
            - .:/var/www/html:cached
            - ./src/Frontend/Files:/var/www/html/src/Frontend/Files:cached
            - fork-cms-var:/var/www/html/var

    db:
        image: "mariadb:latest"
        restart: always
        ports:
            - "3306:3306"
        environment:
            # Make sure to change these if you're planning on using Docker for purposes other than local development!
            - MYSQL_DATABASE=forkcms
            - MYSQL_ROOT_PASSWORD=<PASSWORD>
            - MYSQL_USER=forkcms
            - MYSQL_PASSWORD=<PASSWORD>
        volumes:
            # Uncomment the next line if you want to keep mysql in a data container
            # - db-data:/var/lib/mysql:rw
            # By default, use a bind-mounted host directory instead. It's harder to accidentally lose all your db data!
            - ./var/docker/db/data:/var/lib/mysql:rw
            - ./tests/data/test_db.sql:/test_db.sql:ro
            - ./var/docker/db/scripts:/docker-entrypoint-initdb.d:ro

volumes:
    fork-cms-var: {}
    db-data: {}<commit_msg>Use mysql 5:7 in docker just like in the github actions<commit_after>version: "2.4"

services:
    app:
        build:
            context: .
            cache_from: [ghcr.io/forkcms/forkcms:latest]
        working_dir: /var/www/html
        ports:
            - "80:80"
            - "443:443"
        depends_on:
            - db
        env_file: ./var/docker/.env
        volumes:
            - .:/var/www/html:cached
            - ./src/Frontend/Files:/var/www/html/src/Frontend/Files:cached
            - fork-cms-var:/var/www/html/var

    db:
        image: "mysql:5.7"
        restart: always
        ports:
            - "3306:3306"
        environment:
            # Make sure to change these if you're planning on using Docker for purposes other than local development!
            - MYSQL_DATABASE=forkcms
            - MYSQL_ROOT_PASSWORD=<PASSWORD>
            - MYSQL_USER=forkcms
            - MYSQL_PASSWORD=<PASSWORD>
        volumes:
            # Uncomment the next line if you want to keep mysql in a data container
            # - db-data:/var/lib/mysql:rw
            # By default, use a bind-mounted host directory instead. It's harder to accidentally lose all your db data!
            - ./var/docker/db/data:/var/lib/mysql:rw
            - ./tests/data/test_db.sql:/test_db.sql:ro
            - ./var/docker/db/scripts:/docker-entrypoint-initdb.d:ro

volumes:
    fork-cms-var: {}
    db-data: {}
{'fraction_non_alphanumeric': 0.11107155571377715, 'fraction_numerical': 0.015663937344250624, 'mean_word_length': 1.5827205882352942, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '721425', 'n_tokens_mistral': 929, 'n_tokens_neox': 869, 'n_words': 188}