Dockerfile and docker-compose to develop using Laravel framework on Docker.
The docker-compose file brings up a local environment with:
-
Laravel X.XX - to be installed manually (see below)
# Optionally, create a new Laravel project
mkdir my-project
cd my-project
docker run --rm -v $(pwd):/app composer create-project --prefer-dist laravel/laravel .
# Copy files in this repository to your Laravel project directory
cp -r laravel-on-docker/. my-project
# Create your own .env file and update it with your config
cp .env.example .env
# Bring the environment up
docker-compose up
# Once ready, go to http://localhost:8080
# Stop and remove containers
docker-compose down
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.