LEMP - web stack created for solutions written in PHP that support the MySQL database
Note
App configuration has been tested on the following containers' versions:
nginx:mainline-alpine-slim
mysql:8.4.1
php:8.3.22-fpm-alpine
phpmyadmin:5.2.2
- MySQL and PHP are on the backend network because they only communicate with each other (PHP connects to MySQL)
- Nginx acts as the frontend and needs access to PHP (backend) as well as to be exposed to the outside world
- phpMyAdmin must connect to MySQL (therefore, it needs access to the backend network) and also be accessible from a browser (so it needs the frontend network)
git clone https://github.com/MedrekIT/cloud_lemp.git
cd cloud_lemp
Important
To make it work, you will need to provide your own environment variables and secrets in .env, db_password.txt and db_root_password.txt files
Test start
docker compose up -d --dry-run
Start
docker compose up -d
Test
Stop
docker compose down