Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 854 Bytes

http_https.md

File metadata and controls

38 lines (26 loc) · 854 Bytes

HTTP and HTTPS Version / Installation

This version of the Docker Compose configuration serves the Laravel application over both HTTP and HTTPS.

Installation

  1. Clone the repository:

    git clone https://github.com/Endkind/laravel_docker.git
    cd laravel_docker
  2. Copy the files into your existing Laravel project:

    cp -r apache/http_https/* /path/to/your/laravel-project
    cd /path/to/your/laravel-project
  3. Place valid SSL certificates in the ssl folder:

    cp /path/to/your/ssl.pem ssl/
    cp /path/to/your/ssl.key ssl/
  4. Create an .env file based on the pre-configured .env.docker file and adjust the environment variables as needed:

    cp .env.docker .env
  5. Start the Docker containers:

    docker-compose up -d