Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffersonrucu/docker_php_mysql_redis_nginx
This setup provides a Docker-based environment for running PHP, MySQL, Redis, and Nginx.
https://github.com/jeffersonrucu/docker_php_mysql_redis_nginx
docker nginx php redis
Last synced: 9 days ago
JSON representation
This setup provides a Docker-based environment for running PHP, MySQL, Redis, and Nginx.
- Host: GitHub
- URL: https://github.com/jeffersonrucu/docker_php_mysql_redis_nginx
- Owner: jeffersonrucu
- Created: 2024-12-20T04:45:21.000Z (20 days ago)
- Default Branch: master
- Last Pushed: 2024-12-21T06:38:46.000Z (18 days ago)
- Last Synced: 2024-12-30T12:46:08.105Z (9 days ago)
- Topics: docker, nginx, php, redis
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker with PHP, MySQL, Redis and Nginx
This setup provides a Docker-based environment for running PHP, MySQL, Redis, and Nginx.
## 🚀 Getting Started
### Prerequisites
Ensure you have the following tools installed on your system:- Docker (20.10 or newer)
- Docker Compose (v2.0 or newer)## 📄 Instructions
### 1. Configure Environment Variables
Copy the provided .env.example file to .env and adjust the variables as needed:
```bash
cp .env.example .env
```### 2. Build and Start the Containers
Run the following command to build and start the containers in detached mode:```bash
docker-compose up --build -d
```### 3. Access the Application
Web Service (Nginx): http://localhost:9000## Reference
- [How to implement a Load Balancer Using Nginx & Docker](https://dev.to/mazenr/how-to-implement-a-load-balancer-using-nginx-docker-4g73)
- [Load Balancing with Docker Compose and NGINX](https://medium.com/@aedemirsen/load-balancing-with-docker-compose-and-nginx-b9077696f624)
- [Using Redis with docker and docker-compose for local development a step-by-step tutorial](https://geshan.com.np/blog/2022/01/redis-docker)
- [Deploying a PHP Web App with Docker Compose, Nginx, and MariaDB](https://medium.com/@tech_18484/deploying-a-php-web-app-with-docker-compose-nginx-and-mariadb-d61a84239c0d)
- [Dockerize your PHP application with Nginx and PHP8-FPM](https://marc.it/dockerize-application-with-nginx-and-php8)