- Docker engine 19.03.0+
- Docker Compose 1.27+
- Make
- HTTP server Nginx 1.20
- PHP 8.1
- Node 17
- Database MariaDB
Many commands are in Makefile file. Example start, stop, build and many more 👇.
- It is not recommended to clone or fork the repository, download a copy of this Git repository
- Run this command
make laravel-installfor install Laravel with Composer ⚠️ Modify environnement file.envcreate by Laravel installer with this :
DB_CONNECTION=mysql
DB_HOST=mariadb
DB_PORT=3306
DB_DATABASE=Change this
DB_USERNAME=Change this
DB_PASSWORD=Change this
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"- Launch the environment with
make start-dev - And enjoy 😊 !
This command build container, install composer dependencies.
make install-dev
Start environment.
make start-dev
For Visual Studio Code, use this configuration in .vscode/launch.json file.
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/app": "${workspaceFolder}"
}
}
]
}Adminer equivalent to PHPmyAdmin. All credentials are in .env file.
http://localhost:8080
MailHog capture all mails form the application.
http://localhost:8025
- Modify
⚠️ environnement file.envwith production parameters make installmake start
build: Build docker containerbuild-dev: Build docker development containercomposer-install: Install PHP dependencies with Composer for productioncomposer-install-dev: Install PHP dependencies with Composer for devellopementcomposer-update: Update PHP dependenciesdatabase-migrate: Laravel database migration commanddatabase-seed: Laravel database seeding commanddown: Set in maintenance Laravel applicationide-helper: Generate helpers file for IDE (PHPStorm, VS Code ...)git-pull: Reset stage and git pullinstall: Runbuild,composer-installlaravel-storageinstall-dev: Runbuild-dev,composer-install-devlaravel-storagelaravel-install: Install Laravel with Composerlaravel-cache: Generate all cache for Laravellaravel-storage: Create store link for Laravelpull: Pull the lastest Docker containersrestart: Restart Docker containersrestart-dev: Restart Docker development containersstart: Start Docker containersstart-dev: Start Docker development containersstop: Stop Docker containersstop-dev: Stop Docker development containerstinker: Run Laravel Tinkertest: Run Laravel unit testtest-create name=TestName: Create run Laravel unit testup: Set online Laravel applicationupdate: Rundowngit-pullcomposer-installlaravel-cachedatabase-migrateupupdate-dev: Rundowngit-pullcomposer-install-devdatabase-migrateupupgrade: Runstopgit-pullpullbuildcomposer-installlaravel-cachedatabase-migratestartupgrade-dev: Runstopgit-pullpull-devbuild-devcomposer-install-devdatabase-migratestart