AnwarHossainSR / latest-laravel-docker-boilerplate

Latest laravel docker boilerplate with phpmyadmin, nginx, redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Docker Laravel MySQL Nginx Starter

Project Starter For Web Application Development with Laravel, MySQL, Nginx, and Docker.

Contributors Stargazers Issues

Features

Getting Started

Follow the instruction below to setting up your project.

Prerequisites

Clone This Template For Your Project

  • By Clicking Use This Template Button or You can Click Here

image

Usage

preview-docker-laravel

  • Create .env file for laravel environment from .env.example on src folder
  • Run command docker-compose build on your terminal
  • Run command docker-compose up -d on your terminal
  • Run command composer install on your terminal after went into php container on docker
  • Run command docker exec -it php /bin/sh on your terminal
  • Run command chmod -R 777 storage on your terminal after went into php container on docker
  • If app:key still empty on .env run php artisan key:generate on your terminal after went into php container on docker
  • To run artisan command like migrate, etc. go to php container using docker exec -it php /bin/sh
  • Go to http://localhost:8001 or any port you set to open laravel

Note: if you got a permission error when running docker, try running it as an admin or use sudo in linux

About

Latest laravel docker boilerplate with phpmyadmin, nginx, redis


Languages

Language:PHP 81.0%Language:Blade 17.3%Language:Shell 0.9%Language:JavaScript 0.6%Language:Dockerfile 0.3%