-
Notifications
You must be signed in to change notification settings - Fork 1
Apache http_https
Endkind edited this page Mar 10, 2025
·
2 revisions
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
sslfolder:cp /path/to/your/ssl.pem ssl/ cp /path/to/your/ssl.key ssl/
-
Create an
.envfile based on the pre-configured.env.dockerfile and adjust the environment variables as needed:cp .env.docker .env
-
Start the Docker containers:
docker-compose up -d