This repository hosts a lightweight docker-compose configuration to launch a LEMP (Linux, Nginx, MySQL, PHP) stack.
The stack comprises the following versions:
- PHP
- Nginx
- MySQL
Nginx configuration files can be found under config/nginx/.
To utilize this stack, follow these steps:
Clone it with: git clone https://github.com/IamCarron/LEMP-Docker.git.
Launch the server by executing the following command within the cloned directory: docker-compose up.
You can access a container using:
docker exec -ti {CONTAINER_NAME} /bin/bash
You can list all the IPs using:
docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker ps -aq)
Credits for the PHP login page go to the user Sribuhost and their repository login-form-php. ππ
Credits for the LAMP configuration go to the user ProWebEngineer and their repository docker-lemp. ππ