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 | bashOnce 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/downloadbin/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 -vbin/npm: Run the npm. Ex.bin/npm installbin/yarn: Run the npm. Ex.bin/npm installbin/composer: Run the composer packages. Ex.bin/composer installbin/php: Run the php. Ex.bin/php artisan migratebin/start: Run the docker Containerbin/stop: Stop the container