Giter Site home page Giter Site logo

mauroprojetos / docker-apache-php-mysql-phpmyadmin-ssl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cesarlopes/docker-apache-php-mysql-phpmyadmin-ssl

0.0 1.0 0.0 9 KB

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

License: MIT License

PHP 0.99% Dockerfile 99.01%

docker-apache-php-mysql-phpmyadmin-ssl's Introduction

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


docker-apache-php-mysql-phpmyadmin-ssl's People

Contributors

cesarlopes avatar studioatual avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.