<commit_before>version: '3'

services:
    # Symlex App powered by RoadRunner PHP application server
    app:
        restart: unless-stopped
        build: .
        image: symlex/symlex:develop
        # Remove next line for production/staging: maxJobs=1 means no caching!
        command: rr serve -d --override http.workers.pool.maxJobs=1
        ports:
            - "8081:8081"
        depends_on:
            - db
            - redis
            - mailhog
        volumes:
            - ./:/var/www/html
            - node-data:/var/www/html/frontend/node_modules
            - /dev/shm:/dev/shm
        environment: # Can be set dynamically when deploying with Kubernetes
            - APP_URL=http://localhost:8081/
            - APP_EMAIL=<EMAIL>
            - MAILER_HOST=mailhog
            - MAILER_PORT=1025
            - MAILER_ENCRYPTION=tcp
            - MAILER_USERNAME=
            - MAILER_PASSWORD=
            - MAILER_AUTH_MODE=
            - MYSQL_HOST=db
            - MYSQL_NAME=web
            - MYSQL_USER=web
            - MYSQL_PASSWORD=<PASSWORD>
            - REDIS_HOST=redis
            - VIRTUAL_HOST=symlex.local
            - VIRTUAL_PORT=8081

    # MariaDB is a MySQL compatible database server
    db:
        restart: unless-stopped
        image: mariadb:10
        command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512
        # Expose port to run database scripts locally - only for development!
        # ports:
        #    - "3306:3306"
        volumes:
            - db-data:/var/lib/mysql
        environment:
            MYSQL_ROOT_PASSWORD: root
            MYSQL_USER: web
            MYSQL_PASSWORD: <PASSWORD>
            MYSQL_DATABASE: web

    # Redis is an in-memory key-value database used for storing sessions
    redis:
        restart: unless-stopped
        image: redis:3-alpine

    # Web and API based SMTP testing - only for development!
    mailhog:
        restart: unless-stopped
        image: mailhog/mailhog
        ports:
            - "8025:8025"
        environment:
            - VIRTUAL_HOST=mailhog.local
            - VIRTUAL_PORT=8025

volumes:
    node-data:
        driver: local
    db-data:
        driver: local

networks:
    default:
        driver: bridge<commit_msg>Docker: Upgrade MariaDB to 10.5<commit_after>version: '3'

services:
    # Symlex App powered by RoadRunner PHP application server
    app:
        restart: unless-stopped
        build: .
        image: symlex/symlex:develop
        # Remove next line for production/staging: maxJobs=1 means no caching!
        command: rr serve -d --override http.workers.pool.maxJobs=1
        ports:
            - "8081:8081"
        depends_on:
            - db
            - redis
            - mailhog
        volumes:
            - ./:/var/www/html
            - node-data:/var/www/html/frontend/node_modules
            - /dev/shm:/dev/shm
        environment: # Can be set dynamically when deploying with Kubernetes
            - APP_URL=http://localhost:8081/
            - APP_EMAIL=<EMAIL>
            - MAILER_HOST=mailhog
            - MAILER_PORT=1025
            - MAILER_ENCRYPTION=tcp
            - MAILER_USERNAME=
            - MAILER_PASSWORD=
            - MAILER_AUTH_MODE=
            - MYSQL_HOST=db
            - MYSQL_NAME=web
            - MYSQL_USER=web
            - MYSQL_PASSWORD=<PASSWORD>
            - REDIS_HOST=redis
            - VIRTUAL_HOST=symlex.local
            - VIRTUAL_PORT=8081

    # MariaDB is a MySQL compatible database server
    db:
        restart: unless-stopped
        image: mariadb:10.5
        command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=50
        # Expose port to run database scripts locally - only for development!
        # ports:
        #    - "3306:3306"
        volumes:
            - db-data:/var/lib/mysql
        environment:
            MYSQL_ROOT_PASSWORD: <PASSWORD>
            MYSQL_USER: web
            MYSQL_PASSWORD: <PASSWORD>
            MYSQL_DATABASE: web

    # Redis is an in-memory key-value database used for storing sessions
    redis:
        restart: unless-stopped
        image: redis:3-alpine

    # Web and API based SMTP testing - only for development!
    mailhog:
        restart: unless-stopped
        image: mailhog/mailhog
        ports:
            - "8025:8025"
        environment:
            - VIRTUAL_HOST=mailhog.local
            - VIRTUAL_PORT=8025

volumes:
    node-data:
        driver: local
    db-data:
        driver: local

networks:
    default:
        driver: bridge
{'fraction_non_alphanumeric': 0.08217446270543616, 'fraction_numerical': 0.02359882005899705, 'mean_word_length': 1.6255530973451326, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5066607', 'n_tokens_mistral': 1534, 'n_tokens_neox': 1449, 'n_words': 308}