Skip to content

engrnand/laravel10-docker-setup

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

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:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

HOW TO SETUP PROJECT

Step 1: Ensure your docker is running

Step 2: Open terminal on project directory and follow the setps

docker compose up -d

Setp : RUN exec CMD

docker compose exec app(app-is-container-name) bash 

Setp 4: install composer dependencies

composer install

Setp 5: Setup database env configrations

DB_CONNECTION=mysql
DB_HOST=sqldb
DB_PORT=3306
DB_DATABASE=laravel_web
DB_USERNAME=root
DB_PASSWORD=root

Setp 6: Run database migrations

php artisan migrate

Verifying App is Running

http://localhost:8000

About

Dockerize a Laravel app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages