To install the application, follow the steps below:
-
Clone the repository:
git clone https://github.com/fshasan/laradok.git
-
Navigate to the cloned directory:
cd laradok
-
Update the installation script (provide your laravel repository):
nano install.sh
-
Run the installation script:
sh install.sh
or
./install.sh
Before running the installation script, review the .env
file to set the environment variables. You can use nano .env
to open the file for editing.
To start the containers, run the following command:
docker-compose up -d
The containers can be accessed at:
- Nginx:
http://localhost:8081
- Mailhog:
http://localhost:8025
To stop the containers, run the following command:
docker-compose down
The following services are included in the docker-compose.yml
file:
- Nginx: serves the Laravel application
- PHP: runs the Laravel application
- MySQL: stores the application data
- Mailhog: checking & testing the application emails on locally
- Redis: stores application cache and sessions
- Worker: managing background jobs
The ./data
directory is used to store persistent data for the MySQL and Redis services.