Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atif-ali-aa/alpine-lemp-stack
This repository provides a Docker-based Alpine Linux image configured with the LEMP stack (Linux, Nginx, MySQL, PHP)
https://github.com/atif-ali-aa/alpine-lemp-stack
alpine docker mysql nginx php74 phpmyadmin
Last synced: 1 day ago
JSON representation
This repository provides a Docker-based Alpine Linux image configured with the LEMP stack (Linux, Nginx, MySQL, PHP)
- Host: GitHub
- URL: https://github.com/atif-ali-aa/alpine-lemp-stack
- Owner: atif-ali-aa
- Created: 2023-08-01T22:14:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-01T23:04:10.000Z (over 1 year ago)
- Last Synced: 2024-10-13T12:41:10.046Z (about 1 month ago)
- Topics: alpine, docker, mysql, nginx, php74, phpmyadmin
- Language: PHP
- Homepage:
- Size: 12.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alpine LEMP Stack
This repository provides a Docker-based Alpine Linux image configured with the LEMP stack (Linux, Nginx, MySQL, PHP). It includes PHP 7.4, MySQL 5.7, Nginx, and PhpMyAdmin. Follow the steps below to set up the environment:
## Clone the Repository
Step 1: Clone the repository using the following command:
```bash
git clone [email protected]:atif-ali-aa/alpine-lemp-stack.git
```## Build the Docker Images
Step 2: Change to the cloned directory and run the Docker Compose build command. This process may take some time as it creates the necessary images.
```bash
cd alpine-lemp-stack
docker-compose up -d --build
```## Retrieve MySQL Root Password
Step 3: To manage the MySQL instance, obtain the MySQL root password and store it in a file using the following command:
```bash
docker logs -f mysql-5.7 | grep --line-buffered "GENERATED" >> mysql-root-credentials.txt
```## Accessing the Web Application
Step 4: Open your web browser and visit `localhost`. You should see the PHP version displayed on the page.
![PHP Version](php.png)
## Accessing PhpMyAdmin
Step 5: To use PhpMyAdmin, simply navigate to `localhost/pma` in your web browser. Use the MySQL root credentials obtained in Step 3 to log in and manage your databases.
Please note that this setup utilizes Docker to provide an isolated and consistent development environment. Ensure you have Docker installed and running on your system before following these steps.
Feel free to explore the repository and customize the configurations according to your project requirements. If you encounter any issues or have suggestions, feel free to open an issue or submit a pull request. Happy coding!