GithubHelp home page GithubHelp logo

tonmoy1a / docker-multiple-php-develoment Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 3.0 10 KB

Docker enviroment for multiple php application development. It can run multiple php version at a time. It consists PHP Apache, MySQL, phpMyAdmin, Adminer, composer

Dockerfile 97.61% PHP 2.39%
docker docker-compose php7 php8 adminer mysql php-apache php-docker phpmyadmin

docker-multiple-php-develoment's Introduction

Docker Multiple php Develoment Enviroment

Docker enviroment for multiple php application development. It can run multiple php version at a time. It consists of the following:

  • PHP
  • Apache
  • MySQL
  • phpMyAdmin
  • Adminer
  • composer

Setup

Clone or download this repository and run

docker compose up

Directory Structure

├── docker-files                   # Dockerfiles for php
    ├── PHP56.Dockerfile           # Dockerfile for php5.6
    ├── PHP72.Dockerfile           # Dockerfile for php7.2
    ├── PHP74.Dockerfile           # Dockerfile for php7.4
    ├── PHP80.Dockerfile           # Dockerfile for php8.0
    ├── PHP82.Dockerfile           # Dockerfile for php8.2
├── mysql-data                     # Mysql Server Data
├── www                            # Docker volume for /var/www/html/
    ├── php56                      # Docker volume for /var/www/html/ php5.6
    ├── php72                      # Docker volume for /var/www/html/ php7.2
    ├── php74                      # Docker volume for /var/www/html/ php7.4
    ├── php80                      # Docker volume for /var/www/html/ php8.0
    ├── php82                      # Docker volume for /var/www/html/ php8.2
├── docker-compose.yaml            # Docker compose file

Usage

After running docker compose up put your php application file into www/php{version}. php apache server will run on port 8072, 8074, 8080, 8082

Container Port
PHP 5.6 8056
PHP 7.2 8072
PHP 7.4 8074
PHP 8.0 8080
PHP 8.2 8082
MySql 3306
phpmyadmin 9000
adminer 9001

docker-multiple-php-develoment's People

Contributors

tonmoy1a avatar

Stargazers

 avatar  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.