Laravel 9.6 docker, PHP 8.0.17
- Sudo docker-compose up in the dir
- You may need to attach the shell into php:8.0-apache container to run following command
- sudo a2enmod rewrite
- Run composer install
- Run php artisan --version
- Run php artisan migrate
- In browser http://localhost:8000/public/
- You may need to give 777 to the storage folder. (optional step)
- Phpmyadmin http://localhost:8080/
- Username: forge | Database forge | Password: pass1234
- .env File Details
- DB_CONNECTION=mysql
- DB_HOST=db
- DB_PORT=3306
- DB_DATABASE=forge
- DB_USERNAME=forge
- DB_PASSWORD=pass1234
- 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'
- -h 0.0.0.0 = host 0.0.0.0
- -P 9906 => port 9906
- -u forge => user forge
- -p => password
- -D forge => database forge
- Above command will be run on command line no need to login to mysql container or anything