This is a PHP Laravel project setup using Docker. It is configured to work with Nginx, PHP-FPM, MariaDB, Redis, and Mailhog for a clean, fast, and efficient development environment. This setup ensures that you have a reproducible, isolated environment for your Laravel application, and all necessary services are containerized.
Before getting started, ensure that you have the following installed on your machine: • Docker • Docker Compose
Clone this repository to your local machine:
git clone [email protected]:mouize/docker-base.gitCreate a .env file in the root of the project directory and copy the contents of the .env.example file into it. You can modify the values in the .env file to suit your needs.
Build the Docker containers by running the following command:
make upAfter running the command, you should see the Docker containers being built and started. You can access to your application on the port you specified in the .env file.
You can take a look on the Makefile, some options are available like :
make laravel-install #Install laravel with some dev tools like telescope and phpstan