/lemp-stack

Docker LEMP stack for Laravel Framework

Primary LanguagePHPMIT LicenseMIT

Docker LEMP stack for Laravel Framework

Build Status GitHub issues GitHub stars GitHub forks GitHub license

Services in the stack:

  • L - Linux (Alpine)
  • E - Nginx
  • M - MySQL
  • P - PHP
  • R - Redis
  • N - NPM

Usage:

  • server up
$ docker stack deploy -c docker-compose.yml local
  • server down
$ docker stack rm local
  • connect server
docker exec -it $(docker ps -f name=php -q) bash

Note:

  • I created convenient startup bash script with alias command => Alias bash script
  • If having issue with mouting volume, then use full path, ex: /c/Code/Laravel/

Extra: