A project template ready to start
- Clone this repo
- Create .env
- Build
The following technologies are included:
- PHP 8.0.2 - New PHP with JIT 😃
- Composer 2 - Composer and PHP together ❤️
- Xdebug 3 - Debug your app 🧐
- Nginx latest - The power HTTP SERVER 😮
- Redis latest - CACHE CACHE CACHEEEEE 😎
- Mysql 8 - Use index with responsibility 👌
- Phpmyadmin latest - Update without where 🎲
- Node 14.16 - What's the next package? 👀
- Mailhog latest - Test local mails ✉️
Windows
Linux
First create a .env and set your values
git clone https://github.com/Goodnato/docker-project-php
cd docker-project-php
cp .env_template .env
nano .env
HTTP_HOST=localhost
HTTP_PORT=80
Now BUILD 🙌
docker-compose up -d --build
Access -> http://localhost
Phpmyadmin -> http://localhost:8080 > username: root, password: 123
We all love laravel. So it's easy to install
rm src/index.php
docker-compose exec php composer create-project laravel/laravel .
docker-compose exec php php artisan
nano .env and change ROOT_PHP for default root laravel -> /var/www/html/public
docker-compose restart
cd src/
nano .env
DB_HOST=mysql
DB_DATABASE=database
DB_USERNAME=user
DB_PASSWORD=123
REDIS_HOST=redis
REDIS_PASSWORD=Redis!
MAIL_HOST=mailhog
[email protected]
MAIL_FROM_NAME=Mailhog
access -> http://localhost
Do you want packages for your application? Great, follow these steps
cd docker-project-php
docker-compose exec node npm install
docker-compose exec node npm install bootstrap
docker-compose exec node npm install sweetalert2
MIT
Free Software, o/