Setting up Laravel in the local environment with Docker using the LEMP stack that includes: Nginx, MySQL, PHP, and phpMyAdmin.
git clone git@github.com:hanieas/Docker-Laravel.git
docker-compose exec app composer install
.env.example
to .env
docker-compose build
docker compose up -d
127.0.0.1:8080
docker-compose.yml
including: db
and phpMyAdmin
.env.example
to .env
DB_CONNECTION
to mysql
DB_PORT
to 3306
phpMyAdmin
on 127.0.0.1:3400
docker-compose.yml
including: db
and pgamdin
.env.example
to .env
DB_CONNECTION
to pgsql
DB_PORT
to 5432
pgAdmin
on 127.0.0.1:5050
cd src
docker-compose exec app php artisan {your command}
https://medium.com/@hanieasemi/setting-up-a-laravel-local-environment-with-docker-7541ae170daf