This version of the Docker Compose configuration serves the Laravel application over both HTTP and HTTPS.
-
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_https/* /path/to/your/laravel-project cd /path/to/your/laravel-project
-
Place valid SSL certificates in the
ssl
folder:cp /path/to/your/ssl.pem ssl/ cp /path/to/your/ssl.key ssl/
-
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