<commit_before>version: '2'

services:
    
    web:
        build:
            context: ./conf/nginx 
        image: maxlab/nginx
        restart: always
        env_file: .env
        depends_on:
            - php7xdebug
            - mysql
            - pgsql
            - redis
            - mailcatcher
        volumes:
            - ./conf/nginx/conf:/etc/nginx
            - ./conf/nginx/conf/sites-available/vhost/symfony.env.tpl:/tmp/nginx/symfony.env.tpl
        volumes_from:
            - php7xdebug
        links:
            - php7xdebug:fpm7
            - mailcatcher
        ports:
            - 80:80
            - 443:443
        command: /bin/bash -c "envsubst '$$SYMFONY_ENV' < /tmp/nginx/symfony.env.tpl > /etc/nginx/sites-available/vhost/symfony && nginx"
        
        
    mysql:
        image: mysql:5.7
        container_name: mysql
        env_file: .env
        ports:
            - 3307:3306
        volumes:
            - ./conf/mysql/conf:/etc/mysql/conf.d
            - ./data/mysql:/var/lib/mysql
        restart: always
        
        
    pgsql:
        image: postgres:9.6
        env_file: .env
        ports:
            - 5433:5432
        volumes:
            - ./data/pgsql:/var/lib/postgresql/data
        restart: always
        
        
    redis:
        image: redis:3.0
        restart: always
        volumes: 
            - ./data/redis:/data
        ports:
            - 6379:6379
            
        
    mailcatcher:
        image: schickling/mailcatcher
        restart: always
        
    
    php7console:
        env_file: .env
        build:
            args:
                - TZ=${TZ}
            context: ./conf/php7console 
        container_name: php7console 
        image: maxlab/php7console
        restart: always        
        volumes_from:
            - php7xdebug 
        tty: true
        
        
    php7xdebug:
        env_file: .env
        build:
            context: ./conf/php7xdebug
        image: maxlab/php7xdebug
        restart: always
        volumes:
            - ./workspace:/data
        links:
            - pgsql
            - mysql
            - mailcatcher
            - redis
            - elasticsearch

    dnsmasq:
        build:
            context: ./conf/dnsmasq
        ports:
            - "53:53"<commit_msg>dnsmasq udp only, something wrong with tcp<commit_after>version: '2'

services:
    
    web:
        build:
            context: ./conf/nginx 
        image: maxlab/nginx
        restart: always
        env_file: .env
        depends_on:
            - php7xdebug
            - mysql
            - pgsql
            - redis
            - mailcatcher
        volumes:
            - ./conf/nginx/conf:/etc/nginx
            - ./conf/nginx/conf/sites-available/vhost/symfony.env.tpl:/tmp/nginx/symfony.env.tpl
        volumes_from:
            - php7xdebug
        links:
            - php7xdebug:fpm7
            - mailcatcher
        ports:
            - 80:80
            - 443:443
        command: /bin/bash -c "envsubst '$$SYMFONY_ENV' < /tmp/nginx/symfony.env.tpl > /etc/nginx/sites-available/vhost/symfony && nginx"
        
        
    mysql:
        image: mysql:5.7
        container_name: mysql
        env_file: .env
        ports:
            - 3307:3306
        volumes:
            - ./conf/mysql/conf:/etc/mysql/conf.d
            - ./data/mysql:/var/lib/mysql
        restart: always
        
        
    pgsql:
        image: postgres:9.6
        env_file: .env
        ports:
            - 5433:5432
        volumes:
            - ./data/pgsql:/var/lib/postgresql/data
        restart: always
        
        
    redis:
        image: redis:3.0
        restart: always
        volumes: 
            - ./data/redis:/data
        ports:
            - 6379:6379
            
        
    mailcatcher:
        image: schickling/mailcatcher
        restart: always
        
    
    php7console:
        env_file: .env
        build:
            args:
                - TZ=${TZ}
            context: ./conf/php7console 
        container_name: php7console 
        image: maxlab/php7console
        restart: always        
        volumes_from:
            - php7xdebug 
        tty: true
        
        
    php7xdebug:
        env_file: .env
        build:
            context: ./conf/php7xdebug
        image: maxlab/php7xdebug
        restart: always
        volumes:
            - ./workspace:/data
        links:
            - pgsql
            - mysql
            - mailcatcher
            - redis
            - elasticsearch

    dnsmasq:
        build:
            context: ./conf/dnsmasq
        ports:
{'fraction_non_alphanumeric': 0.08965813803483122, 'fraction_numerical': 0.023650827778972264, 'mean_word_length': 1.0121107266435987, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1310420', 'n_tokens_mistral': 1494, 'n_tokens_neox': 1425, 'n_words': 242}