This is a skeleton of the Laravel 5.8 + Nginx + MariaDB with Docker.
- Docker (https://docs.docker.com/install/)
- Config (deploy/php-fpm/conf.d/laravel-skeleton.conf): php-fpm.conf
- Config (deploy/php/conf.d/local.ini): php.ini
- Config Vhost (deploy/nginx/sites-available/app): app.conf
- Config (.env): .env
- Go to: /path/laravel-skeleton
docker-compose up -d
Inside the container the Laravel is running with the port 80.
For development this project run with Docker-Compose in the ports 9000 and 3000.
The port 3000 run the Npm run watch every change in your code is reflected without refresh the browser.
- http://localhost:9000 To access Laravel
- http://localhost:3000 To access Laravel with npm run watch
- Get container id:
docker ps
- Access container:
docker exec -it *<id_container>* bash
- Logs:
docker log *<id_container>* -f
- Remove all containers and volumes:
// This command remove all container and volumes of your computer
docker-compose down && docker system prune -a -f && docker volume prune -f