- Docker engine 19.03.0+
- Docker Compose 1.27+
- Make
- HTTP server Nginx 1.20
- PHP 8.1
- Node 16
- Database PostgreSQL 14
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-install
for install Laravel with Composer ⚠️ Modify environnement file.env
create by Laravel installer with this :
DB_CONNECTION=pgsql
DB_HOST=pgsql
DB_PORT=5432
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.env
with production parameters make install
make 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-install
laravel-storage
install-dev
: Runbuild-dev
,composer-install-dev
laravel-storage
laravel-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
: Rundown
git-pull
composer-install
laravel-cache
database-migrate
up
update-dev
: Rundown
git-pull
composer-install-dev
database-migrate
up
upgrade
: Runstop
git-pull
pull
build
composer-install
laravel-cache
database-migrate
start
upgrade-dev
: Runstop
git-pull
pull-dev
build-dev
composer-install-dev
database-migrate
start