/local-laravel-docker

Run a development environment for Laravel with docker in local

Primary LanguageDockerfile

Setup Laravel with docker ;-)

nginx - php - mysql - phpmyadmin and composer

move your laravel code base in src folder or clone laravel woth

    git clone https://github.com/laravel/laravel.git

run docker

    docker-compose build
    docker-compose up -d

run artisan commands

    docker-compose exec php php /var/www/html/artisan config:clear
    docker-compose exec php php /var/www/html/artisan migrate
    docker-compose exec php php /var/www/html/artisan make:model Hassan

run composer commands

    docker-compose exec php composer require fabpot/goutte

Reference