Skip to content

MedrekIT/lemp_stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Docker Compose container created for building LEMP web stack from scratch

LEMP - web stack created for solutions written in PHP that support the MySQL database

CI Status


Table of Contents


Screenshots

Container starting dry run

Container starting

Checking start page

Checking phpMyAdmin

Initializing database

Final databases list

Stopping container


Information

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)

Installation

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


Usage

Test start

docker compose up -d --dry-run

Start

docker compose up -d

Test

Stop

docker compose down

About

LEMP - web stack created for solutions written in PHP that support the MySQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages