services:
    laravel.test:
        build:
            context: .
            dockerfile: ./vendor/laravel/sail/runtimes/8.2/Dockerfile
            args:
                WWWGROUP: '${WWWGROUP:-1000}'
        image: 'qlnl:latest'
        extra_hosts:
            - 'host.docker.internal:host-gateway'
        ports:
            - '${APP_PORT:-8888}:8888'
            - '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
        environment:
            WWWUSER: '${WWWUSER}'
            LARAVEL_SAIL: 1
            XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
            XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
            IGNITION_LOCAL_SITES_PATH: '${PWD}'
        networks:
            - sail
        
networks:
    sail:
        driver: bridge
