A basic LEMP stack environment built using Docker Compose. It consists of the following:
- PHP
- Nginx
- MariaDB
- Adminer
- Redis
- Composer
- Clone this repository on your local computer
- configure .env as needed
- Run the
docker-compose up -d
.
git clone https://github.com/afimpel/docker-compose-lemp.git
cd docker-compose-lemp/
cp sample.env .env
// modify .env as needed
docker-compose up -d
// visit localhost
Your LEMP stack is now ready!! You can access it via http://localhost
.
access to php composer:
- Open terminal (ej: xterm, gnome-terminal, powershell, git-bash)
- paste, this command:
docker exec -u $(id -u ${USER}):$(id -g ${USER}) -it phpFPM bash
- exit:
exit
o ctrl+d