Skip to content

Docker / Nginx / MariaDB / Redis / PHP / Composer / Adminer

License

Notifications You must be signed in to change notification settings

afimpel/docker-compose-lemp

Repository files navigation

LEMP stack built with Docker Compose

docker / Nginx / MariaDB / Redis / PHP / Composer / Adminer


A basic LEMP stack environment built using Docker Compose. It consists of the following:

  • PHP
  • Nginx
  • MariaDB
  • Adminer
  • Redis
  • Composer

Installation

  • 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