Docker Configuration for Laravel
This setup is designed as a Docker-based development environment for Laravel.
This setup assumes that Docker is installed and running on your machine. Download & Install Docker Desktop.
This configuration has been tested on Mac & Linux.
# Make your project directory, then cd into it:
mkdir -p ~/dockerlaravel
cd $_
# Execute this automated one-liner from the directory where you want to install your project.
curl -s https://raw.githubusercontent.com/dipudey/docker-laravel/main/bin/lib/setup.sh | bash
Once the above one-liner finishes executing, you should be able to access your site at http://localhost
- URL: http://localhost
To setup manual the laravel product
# Make your project directory, then cd into it:
mkdir -p ~/dockerlaravel
cd $_
# Clone the git repository
git clone https://github.com/dipudey/docker-laravel.git .
# Create you product src directory
mkdir src
# Run the docker environment by
bin/start
# Install your laravel application by
bin/download
bin/bash
: Drop into the bash prompt of your Docker container.bin/cli
: Run any CLI command without going into the bash prompt. Ex.bin/cli composer -v
bin/npm
: Run the npm. Ex.bin/npm install
bin/yarn
: Run the npm. Ex.bin/npm install
bin/composer
: Run the composer packages. Ex.bin/composer install
bin/php
: Run the php. Ex.bin/php artisan migrate
bin/start
: Run the docker Containerbin/stop
: Stop the container