/laraveldock

Super Clean Laravel 8, PHP 8, Mysql, Nginx setup using Docker

Primary LanguageDockerfile

Introduction

This is super clean docker setup for Laravel 8 application. you can adjust it according to your needs

Technologies:

  • PHP 8
  • Laravel 8 compatible
  • Mysql
  • Nginx

Steps

  • create new directory named code and put your laravel code inside code directory
  • run docker-compose up -d

Env File Setup for Laravel

DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=root

Customization

Adding Additional PHP Extentions:

Check the follwing link and customize the Dockerfile according to your need

https://github.com/mlocati/docker-php-extension-installer