Skip to content

rajarizwan2007/DockerLaravel9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About Application

Laravel 9.6 docker, PHP 8.0.17

Follow the steps below.

  1. Sudo docker-compose up in the dir
  2. You may need to attach the shell into php:8.0-apache container to run following command
    1. sudo a2enmod rewrite
  3. Run composer install
  4. Run php artisan --version
  5. Run php artisan migrate
  6. In browser http://localhost:8000/public/
  7. You may need to give 777 to the storage folder. (optional step)
  8. Phpmyadmin http://localhost:8080/
  9. Username: forge | Database forge | Password: pass1234
  10. .env File Details
    1. DB_CONNECTION=mysql
    2. DB_HOST=db
    3. DB_PORT=3306
    4. DB_DATABASE=forge
    5. DB_USERNAME=forge
    6. DB_PASSWORD=pass1234

To import db from command line

  1. mysql -h 0.0.0.0 -P 9906 -u forge -p -D forge < '/var/www/html/lms_docker_php8/src/database/dbBackUp/vteams_dev_migration_1stHalf.sql'
  2. -h 0.0.0.0 = host 0.0.0.0
  3. -P 9906 => port 9906
  4. -u forge => user forge
  5. -p => password
  6. -D forge => database forge
  7. Above command will be run on command line no need to login to mysql container or anything

About

Laravel 9.6, PHP 8.0.17

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published