Coder Social home page Coder Social logo

rafatga / docker-php-fpm-5.6-apache-mysql-https Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 38 KB

I created this repository for other developers who may be looking to build this a similar dev infra. (php-fpm 5.6, apache, mysql, https)

Makefile 14.63% Dockerfile 69.98% Shell 7.94% PHP 7.45%

docker-php-fpm-5.6-apache-mysql-https's Introduction

Introduction

I created this repository for other developers who may be looking to build this a similar dev infra. (php-fpm 5.6, apache, mysql, https)

Images

  • httpd:2.4-alpine
  • mariadb:10
  • php:5.6-fpm-alpine
  • lscr.io/linuxserver/phpmyadmin:latest

Features

The following modules are enabled by this image in addition to what the official php docker images provide

Modules enabled

  • bash
  • zip
  • unzip
  • curl
  • nodejs
  • npm

Apache modules enabled

  • socache_shmcb_module
  • mod_headers
  • ssl_module
  • expires_module
  • rewrite_module
  • mod_deflate
  • mod_proxy
  • mod_proxy_fcgi

PHP Modules enabled

  • apcu
  • bcmath
  • bz2
  • exif
  • gd
  • gmp
  • iconv
  • imagick
  • intl
  • mcrypt
  • mysqli
  • pdo_mysql
  • pdo_pgsql
  • pgsql
  • redis
  • soap
  • ssh2
  • xdebug
  • zend-opcache
  • zip

Default PHP ini settings

memory_limit = 512M
date.timezone = Europe/Paris

Usage

Start containers

make dev
site -> https://localhost/
phpmyadmin -> http://localhost:8081/

Get into container

make enter

Stop container

make kill

Stop & delete container

make nodev

Specifying containers name, database name, etc...

ops/docker/.env

Default database imported

ops/docker/mysql/sample/schema.sql

Specifying custom php.ini, php-fpm.conf & xdebug.ini settings

ops/docker/php/config/php.ini
ops/docker/php/config/php-fpm.conf
ops/docker/php/config/xdebug.ini

Specifying a custom Apache vhost

ops/docker/apache/config/apache.vhost.conf
ops/docker/apache/config/httpd-ssl.conf

Specifying a OpenSSH certificates

ops/docker/apache/certificates/certificate.pem
ops/docker/apache/certificates/certificate-key.pem

You can generate your own self-Signed Certificate:

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfsigned.key -out selfsigned.crt

Xdebug in PhpStorm with Docker

You can follow the steps from this tutorial but be aware that some xdebug variable can differ.

Step 1: Connect docker to phpstorm

Settings > Build, Execution, Deployment > Docker
click sign + -> write any name you want like "Docker" or "My Docker Integration"
leave all the default options -> apply -> ok

Step 2: Configure a PHP servers (https)

Settings > PHP > Servers
click sign + -> set this configuration:
Name: docker - server
Localhost: localhost
Port: 443
check -> use paths mappings
folder src -> /var/www/html

Step 3: Configure a PHP servers (none https)

Settings > PHP > Servers
click sign + -> set this configuration:
Name: docker - server - none https
Localhost: localhost
Port: 80
check -> use paths mappings
folder src -> /var/www/html

docker-php-fpm-5.6-apache-mysql-https's People

Contributors

rafatga avatar

Watchers

 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.