This repository provides a Dockerized setup for running
- Laravel
^10.10
- PHP
8.3
- Nginx
- React
18.2.0
- Node
18
- MySQL
8.1
- MongoDB
7.0
- PHPMyAdmin
Make sure you have the following installed on your system:
- Docker
- docker-compose
- Clone this repository to your local machine
git clone https://github.com/ibra4/dockerized_laravel_react
- Navigate to the cloned repository
cd dockerized_laravel_react
- Configure your environment variables
cp .env.example .env
- Build and start the Docker containers
This command will build the Docker images and start the containers in detached mode
docker-compose up --build -d
- The React application is available at http://localhost:3000.
- The Backend application is available at http://localhost:8000.
- PHPMyAdmin is available at http://localhost:8080.
- Mongo Database is running on port
27027
- Mysql Database is running on port
3306
-
PHP configuration:
configuration files can be found in the ./docker/php directory.
-
Nginx configuration:
configuration files can be found in the ./docker/nginx directory.
-
MySQL configuration:
configuration can be found in the ./docker/mysql directory.
-
PHPMyAdmin configuration:
configuration can be found in the ./docker/phpmyadmin directory.