LaravelPackages.net
Acme Inc.
Toggle sidebar
bhavin-nakrani/laravel

The Laravel Framework with docker including php8, apache and mysql 5.7

6
0
v1.0.0
About bhavin-nakrani/laravel

bhavin-nakrani/laravel is a Laravel package for the laravel framework with docker including php8, apache and mysql 5.7. It currently has 0 GitHub stars and 6 downloads on Packagist (latest version v1.0.0). Install it with composer require bhavin-nakrani/laravel. Discover more Laravel packages by bhavin-nakrani or browse all Laravel packages to compare alternatives.

Last updated

Docker - Laravel - Apache - MySql

Total Downloads Latest Stable Version License

  • Laravel 8
  • PHP 8
  • MySql 5.7

Description

Start developing a fresh Laravel application with docker using docker-compose.

The images used in this repo is php:8.0-apache and mysql:5.7. The goal is to make setting up the development as simple as possible.

Laravel setup with Docker

Installation

git clone git@github.com:bhavin-nakrani/Docker-Laravel-Apache-MySql.git laravel-app

cd laravel-app

cp .env.example .env

Build the images and start the services:

docker-compose build
docker-compose up -d

Connect with container

docker exec -it laravel-app bash -c "sudo -u devuser /bin/bash"

composer install

php artisan key:generate

Connect with database

docker exec -it mysql-db bash -c "mysql -u laravel -p laravel"

Server URL:

http://localhost:8080/

Star History Chart