bhavin-nakrani / laravel
The Laravel Framework with docker including php8, apache and mysql 5.7
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.3|^8.0
- fruitcake/laravel-cors: ^2.0
- guzzlehttp/guzzle: ^7.0.1
- laravel/framework: ^8.65
- laravel/sanctum: ^2.11
- laravel/tinker: ^2.5
Requires (Dev)
- facade/ignition: ^2.5
- fakerphp/faker: ^1.9.1
- laravel/sail: ^1.0.1
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^5.10
- phpunit/phpunit: ^9.5.10
This package is auto-updated.
Last update: 2024-10-29 06:19:15 UTC
README
- 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: