Basic Laravel setup with Docker:
- MySQL
- PHPMyAdmin
- NGINX
- Composer
- Voyager Admin
git clone https://github.com/wowthemesnet/docker-laravel-starter.git
cd docker-laravel-starter
On Linux/MacOS: docker run --rm -v $(pwd):/app composer install
On Windows in PowerShell: docker run --rm -v ${PWD}:/app composer install
On Windows in CMD: docker run --rm -v %cd%:/app composer install
cp .env.example .env
docker-compose up
docker-compose exec app php artisan key:generate
Enter on http://localhost
- run migrations:
docker-compose exec app php artisan migrate
- access db PhpMyAdmin: http://localhost:7000
-
run the following to install Voyager Admin:
On Linux/MacOS:
docker run --rm -v $(pwd):/app composer require tcg/voyager
On Windows in PowerShell:docker run --rm -v ${PWD}:/app composer require tcg/voyager
On Windows in CMD:docker run --rm -v %cd%:/app composer require tcg/voyager
-
docker-compose exec app php artisan voyager:install --with-dummy
-
docker-compose exec app php artisan vendor:publish --provider="TCG\Voyager\VoyagerServiceProvider"
-
docker-compose exec app php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravel5"
-
Access Voyager account: http://localhost/admin
User: admin@admin.com Pass: password
- Credits and many thanks to AngCosmin
- Source: DigitalOcean Community