Last active
July 17, 2016 11:27
-
-
Save RyosukeKamei/4fc2029d104b2c8a60f7293948daf5ef to your computer and use it in GitHub Desktop.
Dockerを利用してFuelPHP開発環境構築 ref: http://qiita.com/RyosukeKamei/items/d97c53c1a86b27e6ee32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo chown -R $User korejo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Server parameters */ | |
$cfg['Servers'][$i]['host'] = 'localhost'; | |
$cfg['Servers'][$i]['connect_type'] = 'tcp'; | |
$cfg['Servers'][$i]['compress'] = false; | |
$cfg['Servers'][$i]['AllowNoPassword'] = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Server parameters */ | |
$cfg['Servers'][$i]['host'] = '192.168.99.100'; /* DockerのIPアドレスに変更 */ | |
$cfg['Servers'][$i]['connect_type'] = 'socket'; /* tcpからsocketに変更 */ | |
$cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock'; /* ソケットを追加 */ | |
$cfg['Servers'][$i]['compress'] = false; | |
$cfg['Servers'][$i]['AllowNoPassword'] = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ●言語 | |
* Localization & internationalization settings | |
*/ | |
'language' => 'jp', | |
// 'language' => 'en', // Default language | |
// 'language_fallback' => 'en', // Fallback language when file isn't available for default language | |
// 'locale' => 'en_US', // PHP set_locale() setting, null to not set | |
/** | |
* ●エンコーディング | |
* Internal string encoding charset | |
*/ | |
'encoding' => 'UTF-8', | |
/** | |
* ●タイムゾーン | |
* DateTime settings | |
* | |
* server_gmt_offset in seconds the server offset from gmt timestamp when time() is used | |
* default_timezone optional, if you want to change the server's default timezone | |
*/ | |
// 'server_gmt_offset' => 0, | |
'default_timezone' => 'Asia/Tokyo', | |
/** | |
* ●ログ(ここを設定しないとFuelPHPエラーとなります!) | |
* Logging Threshold. Can be set to any of the following: | |
* | |
* Fuel::L_NONE | |
* Fuel::L_ERROR | |
* Fuel::L_WARNING | |
* Fuel::L_DEBUG | |
* Fuel::L_INFO | |
* Fuel::L_ALL | |
*/ | |
'log_threshold' => Fuel::L_WARNING, | |
// // 'log_path' => APPPATH.'logs/', | |
'log_path' => '/var/log/fuel/', /* ここの設定が重要 */ | |
'log_date_format' => 'Y-m-d H:i:s', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose up -d # 再作成 | |
docker-compose stop # 一括停止 | |
docker-compose start # 起動 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker-compose up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
volumes: | |
- /share | |
- .:/app | |
- ./docker/mysql:/etc/mysql/conf.d:ro | |
- ./docker/apache:/etc/apache2/sites-enabled:ro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone git@github.com:Seraphicer/docker-fuelphp.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo ./setup korejo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd docker-fuelphp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd korejo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /Users/user/Documents/workspace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment