pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/neha-dev-dot/LEMP-stack-docker-compose

anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-b69241e157469407.css" /> GitHub - neha-dev-dot/LEMP-stack-docker-compose: This project sets up a WordPress site using a complete LEMP stack (Linux, Nginx, MySQL, PHP) inside Docker containers via docker-compose. It includes a bash script that automates the setup process—checking dependencies, pulling the latest WordPress version, generating /etc/hosts entries, and managing the lifecycle of the site (start, stop, delete). · GitHub
Skip to content

neha-dev-dot/LEMP-stack-docker-compose

Repository files navigation

LEMP-stack-docker-compose

WordPress site using the latest WordPress Version. This will be a LEMP (Linux, Nginx, Mysql, PHP) stack running inside Docker containers. Created a Bash shell script to run the LEMP stack with just one command, and your WordPress site will start running on a local machine or browser. This bash script will contain the following features-

  1. Check if docker and docker-compose is installed on the system. If not present, install the missing packages.
  2. The script should be able to create a WordPress site using the latest WordPress Version. Provided a way for the user to provide the site name as a command-line argument.
  3. It must be a LEMP stack running inside containers (Docker) and a docker-compose file is a must.
  4. Created a /etc/hosts entry for example.com pointing to localhost. Here we are assuming the user has provided example.com as the site name.
  5. Prompt the user to open example.com in a browser if all goes well and the site is up and healthy.
  6. Added another subcommand to enable/disable the site (stopping/starting the containers)
  7. Added one more subcommand to delete the site (deleting containers and local files).

Command for run bash script:

chmod +wx <file_name.sh>

./<file_name.sh> <sitename.com>

Here is some snapshots as a result:





About

This project sets up a WordPress site using a complete LEMP stack (Linux, Nginx, MySQL, PHP) inside Docker containers via docker-compose. It includes a bash script that automates the setup process—checking dependencies, pulling the latest WordPress version, generating /etc/hosts entries, and managing the lifecycle of the site (start, stop, delete).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy