GithubHelp home page GithubHelp logo

imdock-cnp56's Introduction

imdock-cnp56

What's this:

Centos(Nginx + PHP5.6)

  • you can easy install PHP Framework (ex: Laravel)

  • you can use xdebug mode by PHPStorm(2016.2 or latest)

  • this project use management by docker-compose

  • you can use this for Laravel-5 PHP Framework

How to install:

~ $ mkdir {project-name}
~ $ cd {project-name}
~/{project-name} $ git clone https://github.com/imagine10255/imdock-cnp56.git
~/{project-name} $ cd imdock-cnp56

change your custom settting (container_name: {project-name})

~/{project-name}/imdock-cnp56 $ vim ./docker-compose-yml
~/{project-name}/imdock-cnp56 $ docker-compose up

open browser, testing your host-ip, see the phpinfo is success! ctrl+c close this

now, you can move the your project to website dir

~/{project-name}/imdock-cnp56 $ cp ./sites-enable/default.vhost.sample ./sites-enable/default.vhost

setting your custom nginx config (volumes: ./website:/var/www → ../{project-dir}:/var/www)

~/{project-name}/imdock-cnp56 $ vim ./docker-compose-yml
~/{project-name}/imdock-cnp56 $ vim ./default.vhost
~/{project-name}/imdock-cnp56 $ docker-compose up -d

Reference architecture:

{project-name}
├── imdock-cnp56
│   ├── conf/
│   ├── sites-enable/(nginx website setting)
│   ├── sites-module/
│   ├── website(sample phpinfo)
│   ├── Dockerfile
│   └── docker-compose.yml
└── {project-dir}
    └── ...

How to and other docker-compose use the same network :

#if you not have group network, you can create this, and other docker-compose use this network setting
~ $ docker network create --driver bridge imdockgroup

How to change setting:

  • You just look at this directory you will understand (config/*)

  • When the settings are complete, restart the container

PHP Extend:

  • PHP5.6
    • mbstring
    • mcrypt
    • php-dom, php-domxml, php-wddx, php-xsl
    • php-mysqli, php_database
    • mongodb
    • redis
    • pgsql
    • php-mssql
    • php56w-pdo_sqlite, php56w-sqlite3
    • apcu
    • gd
    • imap
    • imagick
    • zend-opcache
    • memcache
    • xdebug

imdock-cnp56's People

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.