GithubHelp home page GithubHelp logo

nezhar / php-docker-ssl Goto Github PK

View Code? Open in Web Editor NEW
46.0 4.0 19.0 1 KB

A simple docker configuration to use PHP with HTTPS for development

PHP 100.00%
php-docker ssl docker-configuration hacktoberfest

php-docker-ssl's Introduction

PHP Docker with SSL

A simple docker configuration to use PHP with HTTPS for development

This is a simple Dockerfile that uses the PHP-Apache image and creates a self signed certificate to enable the default SSL. This is suitable for development and testing, not for production.

Usage

Download the repository and use the docker compose to build and run the container:

Build container
sudo docker-compose build
Run container
sudo docker-compose up

After you run the command above you should be able to access http://localhost and https://localhost

Alternatively you can directly download the Dockerfile and the php.ini to build the image (you may adjust the php.ini to your needs).

php-docker-ssl's People

Contributors

nezhar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

php-docker-ssl's Issues

https

This site can’t be reached, but it works in port 80

feature request: php7

feature request: use php:7.0-apache as base docker, and install the strict minimum to get https working on localhost.
(no mysql and other configuration files)

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.