- Nginx
- PHP 7.3
- MariaDB
- phpMyAdmin
docker-compose build
docker-compose up
# Attach shell
docker-compose exec php-fpm bash
composer install
cp .env.example .env
# Edit database configuration within .env file as below:
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laraveldb
DB_USERNAME=laraveluser
DB_PASSWORD=password
# Generate key
php artisan key:generate
# Migrate DB
php artisan migrate
Open web browser
- Laravel:
localhost:8000
- phpMyAdmin:
localhost: 8081
Good luck