Skip to content

Csantos88/docker-apache-php-mysql-phpmyadmin-ssl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 99.0%
  • PHP 1.0%