Sign inSign up

driou/lemp-stack

By driou

•Updated over 9 years ago

Image
0

2.0K

driou/lemp-stack repository overview

⁠lemp-stack

⁠Intro

Run a LEMP stack (Linux Nginx MySQL PHP-FPM) powered by Docker.

## Pre-requisites

Have a Docker environment ok.

To install Docker on your computer, please follow instructions here⁠ choosing your platform.

⁠Installation

-> Dockerfile // to build container
-> conf/nginx/sites-enabled/ // vhost definition
-> conf/php5-fpm/ // php5 configuration
-> src/ // documentroot

## Build the container from GitHub repository

Clone this repository :

git clone https//github.com/driou/lemp-stack

From root of the repository, build the image container :

docker build -t name-of-image-you-want . 

⁠Use

Verify that port 80 is not used (check local WebServer apache2/nginx/...)

From root of the repository, run the container like this:

Daemon mode : docker run -d -p 80:80 -v $PWD/conf/php5-fpm:/etc/php5/fpm/ -v $PWD/conf/nginx/sites-enabled:/etc/nginx/sites-enabled -v $PWD/src:/usr/share/nginx/html/ driou/lemp-stack

⁠TODO

  • Fix user / groups rights
  • tune mysql
  • add tools (phpmyadmin, mailcatcher)

Tag summary

Content type

Image

Digest

sha256:f149498ab…

Size

246.5 MB

Last updated

over 9 years ago

docker pull driou/lemp-stack