This version of the Docker Compose configuration serves the Laravel application over HTTP only.
-
Clone the repository:
git clone https://github.com/Endkind/laravel_docker.git cd laravel_docker
-
Copy the files into your existing Laravel project:
cp -r apache/http/* /path/to/your/laravel-project cd /path/to/your/laravel-project
-
Create an
.env
file based on the pre-configured.env.docker
file and adjust the environment variables as needed:cp .env.docker .env
-
Start the Docker containers:
docker-compose up -d