Skip to content

k2levin/lemp-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker LEMP stack for PHP

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/