This repository contains a custom Docker environment for Laravel projects, which streamlines the development process and ensures a virtually hands-free setup with minimal additional configuration required. This environment allows you to concentrate on writing code and developing features, while promoting a consistent development experience across your team.
To set up the project on your local machine, follow these steps:
- Clone the repository:
git clone https://github.com/gevorgmelkumyan/laravel-docker.git
- Run the Makefile
build
command:
make build
- Start the Docker environment using the Makefile
run
command:
make run
The Makefile provides several useful commands for interacting with the Docker environment:
make build
: Build the Docker containersmake run
: Start the Docker containersmake stop
: Stop the Docker containersmake down
: Remove the Docker containers, volumes, and imagesmake server
: Access the server container's bash shellmake vite
: Access the vite container's bash shell
The custom Docker environment is configured using a combination of Makefile, update.env.sh
script, and Docker-related
files. The Makefile defines commonly used commands, the update.env.sh
script sets up the necessary environment
variables, and the Docker-related files (located in the /docker
directory) define the services the Laravel
application relies on.
Contributions to improve the custom Laravel Docker environment are welcome. Please create an issue to discuss the changes or submit a pull request.
This project is released under the MIT License.