<commit_before>version: "3"

services:
    web:
        build: nginx
        ports:
            - "8000:80"
        links:
            - app
            - filestore
        volumes:
            - filestore:/filestore-data
    filestore:
        build: filestore
        volumes:
            - filestore:/filestore-data
        environment:
            - "UPLOAD_FOLDER=/filestore-data"
            - "FILESTORE_PORT=80"
    app:
        build: server
        links:
            - db
            - redis
        volumes:
            - "./contest.dhall:/app/contest.dhall"
            - "./deploy.dhall:/app/deploy.dhall"
        environment:
            - "FLASK_DEBUG=1"
            - "SECRET_KEY=${SECRET_KEY}"
            - "ADMIN_EMAIL=${ADMIN_EMAIL}"
            - "ENVIRONMENT=${ENVIRONMENT}"
            - "CACHE_REDIS_HOST=redis"
            - "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
            - "MYSQL_HOST=db"
            - "MYSQL_DATABASE=easyctf"
            - "FILESTORE_SAVE_ENDPOINT=http://filestore/save"
    db:
        image: mariadb:10
        expose:
            - 3306
        environment:
            - "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
            - "MYSQL_DATABASE=easyctf"
    redis:
        image: redis:6-alpine
volumes:
    filestore:
<commit_msg>Allow customizing the port<commit_after>version: "3"

services:
    web:
        build: nginx
        ports:
            - "${WEB_PORT}:80"
        links:
            - app
            - filestore
        volumes:
            - filestore:/filestore-data
    filestore:
        build: filestore
        volumes:
            - filestore:/filestore-data
        environment:
            - "UPLOAD_FOLDER=/filestore-data"
            - "FILESTORE_PORT=80"
    app:
        build: server
        links:
            - db
            - redis
        volumes:
            - "./contest.dhall:/app/contest.dhall"
            - "./deploy.dhall:/app/deploy.dhall"
        environment:
            - "FLASK_DEBUG=1"
            - "SECRET_KEY=${SECRET_KEY}"
            - "ADMIN_EMAIL=${ADMIN_EMAIL}"
            - "ENVIRONMENT=${ENVIRONMENT}"
            - "CACHE_REDIS_HOST=redis"
            - "MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}"
            - "MYSQL_HOST=db"
            - "MYSQL_DATABASE=easyctf"
            - "FILESTORE_SAVE_ENDPOINT=http://filestore/save"
    db:
        image: mariadb:10
        expose:
            - 3306
        environment:
            - "MYSQL_ROOT_PASSWORD=${<PASSWORD>}"
            - "MYSQL_DATABASE=easyctf"
    redis:
        image: redis:6-alpine
volumes:
    filestore:

{'fraction_non_alphanumeric': 0.11136801541425818, 'fraction_numerical': 0.011560693641618497, 'mean_word_length': 1.3860294117647058, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6155948', 'n_tokens_mistral': 886, 'n_tokens_neox': 875, 'n_words': 109}