To get started, make sure you have Docker installed on your system, and then clone this repository.
Docker ENV Setup, the output port , PHP , Mailhog , Xdebug ports can be set.
cp .env.example .env
export UID=$(id -u)
export GID=$(id -g)
docker compose up -d --build
build is only required at the initial time
Here you can clone the Laravel project to src folder
Run the below commands from the project_folder/src
of the project using CLI
chmod -R 777 storage/ bootstrap/cache
Run the below commands from the project_folder/src
of the project using CLI
cp .env.example .env
Run the below commands from project_folder/src
docker compose run --rm artisan migrate
docker compose run --rm artisan db:seed
or If you're using different data base docker with docker network concept.
docker exec PHP_CONTAINER_NAME php artisan migrate
docker exec PHP_CONTAINER_NAME php artisan db:seed
Generate Documentation From code base
docker compose run --rm php vendor/bin/openapi app -o public/apidocs/swagger.json
docker exec PHP_CONTAINER_NAME php artisan test
Can access the code coverage report and Graph
docker exec PHP_CONTAINER_NAME php artisan test --coverage-html public/coverage/
docker ps
docker exec -it redis-cli
docker exec -it bash
docker network create DockerNet
docker network connect DockerNet postgres
docker network connect DockerNet PHP_CONTAINER_NAME
docker network inspect DockerNet
PHP - 8.2.0 (Laravel Framework),