Centos(Nginx + PHP7.1)
-
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
~ $ mkdir {project-name}
~ $ cd {project-name}
~/{project-name} $ git clone https://github.com/imagine10255/imdock-cnp7.git
~/{project-name} $ cd imdock-cnp7
~/{project-name}/imdock-cnp7 $ vim ./docker-compose-yml
~/{project-name}/imdock-cnp7 $ docker-compose up
~/{project-name}/imdock-cnp7 $ cp ./sites-enable/default.vhost.sample ./sites-enable/default.vhost
~/{project-name}/imdock-cnp7 $ vim ./docker-compose-yml
~/{project-name}/imdock-cnp7 $ vim ./default.vhost
~/{project-name}/imdock-cnp7 $ docker-compose up -d
{project-name}
├── imdock-cnp7
│ ├── conf/
│ ├── sites-enable/(nginx website setting)
│ ├── sites-module/
│ ├── website(sample phpinfo)
│ ├── Dockerfile
│ └── docker-compose.yml
└── {project-dir}
└── ...
#if you not have group network, you can create this, and other docker-compose use this network setting
~ $ docker network create --driver bridge imdockgroup
-
You just look at this directory you will understand (cnp7/config/*)
-
When the settings are complete, restart the container
- PHP7
- mbstring
- mcrypt
- php-dom, php-domxml, php-wddx, php-xslxml, xmlrpc
- php-mysqli, php_database
- mongodb
- redis
- pgsql
- php-mssql
- php71w-pdo_sqlite, php71w-sqlite3
- apcu
- gd
- imap
- imagick
- zend-opcache
- memcache
- xdebug