This repository can be used to host LOMP (Linux, OpenLiteSpeed, Mariadb, PHP) server using docker compose. The docker images used for building LAMP stack are:-
- Web server - litespeedtech/openlitespeed:1.6.9-lsphp74
- API server - python:3.8.2
- Database - mariadb:10.5.1-bionic
- PHPMyAdmin - phpmyadmin/phpmyadmin
-
The default configuration is saved as
sample_env
. Copy contents fromsample_env
to.env
.cp sample_env .env
-
Make necessary changes to
.env
file. -
Build docker-compose image using the following command.
docker-compose build --no-cache
-
Run docker-compose using the following command.
docker-compose up -d
-
To shut down docker-compose container, using the following command.
docker-compose down
lomp-docker-compose
┣ bin
┃ ┣ apiserver
┃ ┃ ┣ code
┃ ┃ ┃ ┣ app.py
┃ ┃ ┃ ┗ requirements.txt
┃ ┃ ┗ Dockerfile
┃ ┣ mariadb
┃ ┃ ┗ Dockerfile
┃ ┣ phpmyadmin
┃ ┃ ┗ Dockerfile
┃ ┗ webserver
┃ ┃ ┣ Dockerfile
┃ ┃ ┗ index.php
┣ config
┃ ┣ openlitespeed-config
┃ ┃ ┗ httpd_config.conf
┃ ┣ openlitespeed-docker
┃ ┃ ┗ docker.conf
┃ ┣ openlitespeed-vhosts
┃ ┃ ┗ vhconf.conf
┃ ┗ php
┃ ┃ ┗ php.ini
┣ data
┃ ┗ .gitkeep
┣ docs
┃ ┣ architecture.drawio
┃ ┗ architecture.png
┣ logs
┃ ┗ openlitespeed
┃ ┃ ┗ .gitkeep
┣ .gitignore
┣ LICENSE
┣ README.md
┣ docker-compose.yaml
┗ sample_env
- Sashwat K sashwat0001@gmail.com