/d4l

Docker setup for Laravel proejcts

Primary LanguageDockerfile

D4L (Docker for Laravel)

Setup Instructions

#0. TLDR;

  1. Open a terminal
  2. cd into the direcoty where you want to place your project (e.g. ~/Desktop)
  3. Copy #1, #2, and #3 from this page all at once, including normal text, it will be ignored
  4. Paste into terminal and press
  5. Wait
  6. Go to step #4

#1. Clone Repository

git clone git@github.com:kadimi/d4l.git
cd d4l

#2. Setup Laravel

# Download and setup Laravel.
composer create-project laravel/laravel laravel

# Create empty database.
touch laravel/database/database.sqlite

# Use correct directory permissions.
chmod -R 777 laravel/storage laravel/bootstrap/cache

#3. Boot Docker Containers

docker-compose up --build

#4. Access Services