Skip to content

Latest commit

 

History

History
executable file
·
54 lines (29 loc) · 1.1 KB

File metadata and controls

executable file
·
54 lines (29 loc) · 1.1 KB

Docker | Apache 2.4 | PHP 7.3.7 | Mysql 5.7 | Phpmyadmin | SSL

1. Run Docker

Start Server (in background)

  • docker-compose up -d

Stop Server

  • docker-compose down

Rebuild Server

  • docker-compose up -d --build

Installation

2. Create a Self-Signed SSL Certificate

Install Certutil

  • sudo apt install libnss3-tools -y

Install mkcert

Generate Local CA

  • mkcert -install

Generate Local SSL Certificates

  • sudo mkcert example.com '*.example.com' localhost 127.0.0.1 ::1

Copy the certificate example.com+4.pem and key example.com+4-key.pem into folder .docker/apache of your project.

Rename these files to server.pem and server-key.pem and give the permission 644.

  • sudo chmod 644 server.pem
  • sudo chmod 644 server-key.pem

References