{"id":7657,"date":"2017-02-13T04:24:51","date_gmt":"2017-02-12T19:24:51","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=7657"},"modified":"2019-01-14T00:13:41","modified_gmt":"2019-01-13T15:13:41","slug":"%e5%bf%99%e3%81%97%e3%81%84%e4%ba%ba%e5%90%91%e3%81%91%e3%81%ae-docker-compose%e3%81%a7%e4%bd%9c%e3%82%8b-nginx-php7-fpm-mysql-phpmyadmin-%e3%81%ae%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=7657","title":{"rendered":"\u5fd9\u3057\u3044\u4eba\u5411\u3051\u306e Docker Compose\u3067\u4f5c\u308b nginx + PHP7-fpm + mysql + phpMyAdmin \u306e\u74b0\u5883\u69cb\u7bc9"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7670\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/docker.png\" alt=\"\" width=\"619\" height=\"148\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/docker.png 682w, https:\/\/www.webcyou.com\/wp-content\/uploads\/docker-300x72.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/p>\n<p>\u3069\u3082\u3067\u3059\u3002<\/p>\n<p><strong><a href=\"https:\/\/www.docker.com\/\" target=\"_blank\" rel=\"noopener\">Docker<\/a><\/strong>\u306f\u3001\u8d77\u52d5\u3082\u65e9\u304f\u3066\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u3067\u3082\u3001\u3061\u3087\u3063\u3068\u3057\u305f<strong>PHP\u306e\u5b9f\u884c\u74b0\u5883\u306e\u70ba<\/strong>\u306b\u3001<\/p>\n<p>\u3044\u3061\u3044\u3061<strong>VirtualBox<\/strong>\u3067<strong>Vagrant<\/strong>\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001\u30a4\u30e1\u30fc\u30b8\u3092<strong>DockerHub<\/strong>\u304b\u3089\u3001pull\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u4f5c\u3063\u3066\u3001<strong>Docker commit<\/strong>\u3057\u3066&#8230;<\/p>\n<p>\u3068\u3044\u3046\u4f5c\u696d\u306f\u3057\u305f\u304f\u306f\u306a\u3044\u3082\u306e\u3067\u3059\u306d\u3002\u3002\u3002<\/p>\n<p>\u3068\u3044\u3046\u4e8b\u3067\u3001\u4eca\u56de\u306f\u300c<strong>YAML\u30d5\u30a1\u30a4\u30eb<\/strong>\u300d\u4e00\u3064\uff08\u53b3\u5bc6\u306b\u306f\u4ed6\u30d5\u30a1\u30a4\u30eb\u3082\u3042\u308a\u307e\u3059\u304c\uff09\u3067\u3001<\/p>\n<p><strong>nginx + PHP7-fpm + mysql + phpMyAdmin \u306e\u74b0\u5883\u69cb\u7bc9<\/strong>\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u74b0\u5883<\/h4>\n<p>OS X El Capitan 10.11.6<br \/>\nDocker version 1.13.0<\/p>\n<h4>Docker Toolbox<\/h4>\n<p>\u4eca\u56de\u306f\u3001\u300c<strong>Docker<\/strong>\u300d\u306f\u4f55\u306a\u306e\u304b\u3001\u3068\u304b\u306e\u300c<strong>Docker<\/strong>\u300d\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u5272\u611b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059 mm<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u3001\u4f55\u3092\u884c\u3046\u304b\u3067\u3059\u304c\u3001\u3056\u3063\u3068\u4ee5\u4e0b\u306e\u69d8\u306a\u6d41\u308c\u3067\u74b0\u5883\u69cb\u7bc9\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30fb<strong>Docker Toolbox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><br \/>\n<strong>Docker Toolbox<\/strong>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001<strong>Docker Quickstart Terminal<\/strong>\u3092\u8d77\u52d5\u3002<\/p>\n<p>\u30fb<strong>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f<\/strong><br \/>\n<strong>nginx + PHP7-fpm + mysql + phpMyAdmin<\/strong> \u306e\u74b0\u5883\u69cb\u7bc9\u3092\u884c\u3046\u305f\u3081\u306e\u300c<strong>YAML\u30d5\u30a1\u30a4\u30eb<\/strong>\u300d\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u3001\u30b7\u30f3\u30d7\u30eb\u306b\u3053\u306e\u69cb\u6210\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>docker\u3001docker-compose\u3001docker-machine\u30b3\u30de\u30f3\u30c9\u7b49\u306e\u8a73\u7d30\u3082\u5272\u611b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044 mm<\/p>\n<p>\u3068\u3044\u3063\u305f\u308f\u3051\u3067\u3001\u65e9\u901f\u3001<strong>Docker Toolbox<\/strong>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<h5>Docker Toolbox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u53c2\u7167\u3057\u3066Docker Toolbox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a class=\"autolink\" href=\"https:\/\/www.docker.com\/products\/docker-toolbox\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/www.docker.com\/products\/docker-toolbox<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7662\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/fce4e2a0550c6134ce953d675492ac66.png\" alt=\"\" width=\"677\" height=\"236\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/fce4e2a0550c6134ce953d675492ac66.png 800w, https:\/\/www.webcyou.com\/wp-content\/uploads\/fce4e2a0550c6134ce953d675492ac66-300x105.png 300w, https:\/\/www.webcyou.com\/wp-content\/uploads\/fce4e2a0550c6134ce953d675492ac66-768x268.png 768w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/p>\n<p>Mac\u3001Win \u5404\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<p>Docker Toolbox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001<strong>Docker Quickstart Terminal<\/strong>\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 &gt; docker<\/strong> \u5185\u306b\u30a2\u30a4\u30b3\u30f3\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7661\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/9025fead427c16fc5280addb5b2deb29.png\" alt=\"\" width=\"219\" height=\"115\" \/><\/p>\n<p>\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3067\u8d77\u52d5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7663\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/eb864af7dde446b4455890ce9cda49b5.png\" alt=\"\" width=\"470\" height=\"168\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/eb864af7dde446b4455890ce9cda49b5.png 800w, https:\/\/www.webcyou.com\/wp-content\/uploads\/eb864af7dde446b4455890ce9cda49b5-300x107.png 300w, https:\/\/www.webcyou.com\/wp-content\/uploads\/eb864af7dde446b4455890ce9cda49b5-768x275.png 768w\" sizes=\"auto, (max-width: 470px) 100vw, 470px\" \/><\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u8868\u793a\u3059\u308c\u3070OK\u3067\u3059\uff01<\/p>\n<p>\u305d\u308c\u3067\u306f\u65e9\u901f\u3001nginx\u304b\u3089\u8d77\u52d5\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>nginx<\/h4>\n<p>\u4eca\u56de\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3001\u300cdocker-compose.yml\u300d\u3092\u7528\u610f\u3057\u3066\u305d\u306e\u8a2d\u5b9a\u3067\u8272\u3005\u3068\u8d77\u52d5\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u300cnginx\u300d\u304b\u3089\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong>docker-compose.yml<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">version: '2'\r\n\r\nservices:\r\n  web:\r\n    image: nginx:latest\r\n    ports:\r\n      - \"8080:80\"<\/pre>\n<p><strong>docker-compose.yml<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066 docker-compose up \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ docker-compose up -d<\/pre>\n<p>\u521d\u56de\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>docker-compose ps \u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u78ba\u8a8d\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ docker-compose ps<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\u3007\u3007_web_1          nginx -g daemon off;            Up      443\/tcp, 0.0.0.0:8080-&gt;80\/tcp <\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001status\u304cUp\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u8d77\u52d5\u6210\u529f\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3002<\/p>\n<p><a href=\"http:\/\/192.168.99.100:8080\/\">http:\/\/192.168.99.100:8080\/<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7658\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/340659d76c3daef938a1622ded8d24d1.png\" alt=\"\" width=\"471\" height=\"194\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/340659d76c3daef938a1622ded8d24d1.png 600w, https:\/\/www.webcyou.com\/wp-content\/uploads\/340659d76c3daef938a1622ded8d24d1-300x124.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n<p>nginx\u306e\u8d77\u52d5\u753b\u9762\u304c\u78ba\u8a8d\u3067\u304d\u308c\u3070\u6210\u529f\uff01<\/p>\n<p>\u7d9a\u3044\u3066\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u3068\u306a\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><strong>docker-compose.yml<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">version: '2'\r\n\r\nservices:\r\n  web:\r\n    image: nginx:latest\r\n    ports:\r\n      - \"8080:80\"\r\n    volumes:\r\n      - .\/code:\/code\r\n<\/pre>\n<p>\u300ccode\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3002<\/p>\n<p>volumes\u306e\u5024\u3082\u300c- .\/code:\/code\u300d\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u3001site.conf\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><strong>site.conf<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">server {\r\n    index index.html;\r\n    server_name localhost;\r\n    error_log  \/var\/log\/nginx\/error.log;\r\n    access_log \/var\/log\/nginx\/access.log;\r\n    root \/code;\r\n}<\/pre>\n<p>site.conf\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u66f4\u306b\u8ffd\u52a0\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">version: '2'\r\n\r\nservices:\r\n  web:\r\n    image: nginx:latest\r\n    ports:\r\n      - \"8080:80\"\r\n    volumes:\r\n      - .\/code:\/code\r\n      - .\/site.conf:\/etc\/nginx\/conf.d\/default.conf<\/pre>\n<p>code\/index.html \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3002<\/p>\n<p>\u518d\u3073\u3001docker-compose up \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ docker-compose up -d<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u78ba\u8a8d\u3002<a href=\"http:\/\/192.168.99.100:8080\/\">http:\/\/192.168.99.100:8080\/<\/a>\u3067\u3001\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u300cindex.html\u300d\u304c\u8868\u793a\u3057\u305f\u3089\u6210\u529f\uff01<\/p>\n<p>&nbsp;<\/p>\n<h4>PHP7-fpm<\/h4>\n<p>\u7d9a\u3044\u3066\u3001PHP7\u306e\u74b0\u5883\u3092\u4f5c\u308b\u305f\u3081\u3001PHP7\u3068php-fpm\u306eimage\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>docker-compose.yml<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">version: '2'\r\n\r\nservices:\r\n  web:\r\n    image: nginx:latest\r\n    ports:\r\n      - \"8080:80\"\r\n    volumes:\r\n      - .\/code:\/code\r\n      - .\/site.conf:\/etc\/nginx\/conf.d\/default.conf\r\n    links:\r\n      - php\r\n  php:\r\n    image: php:fpm<\/pre>\n<p>docker-compose.yml\u306bphp\u306eimage\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>site.conf<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">server {\r\n    index index.php index.html;\r\n    server_name localhost;\r\n    error_log  \/var\/log\/nginx\/error.log;\r\n    access_log \/var\/log\/nginx\/access.log;\r\n    root \/code;\r\n\r\n    location ~ \\.php$ {\r\n        try_files $uri =404;\r\n        fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\r\n        fastcgi_pass php:9000;\r\n        fastcgi_index index.php;\r\n        include fastcgi_params;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        fastcgi_param PATH_INFO $fastcgi_path_info;\r\n    }\r\n}<\/pre>\n<p>site.conf\u306bphp-fpm\u304c 9000\u30dd\u30fc\u30c8\u3067\u7acb\u3061\u4e0a\u304c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3002<\/p>\n<p>\u5148\u7a0b\u306e\u300cindex.html\u300d\u3092\u300cindex.php\u300d\u306b\u5909\u66f4\u3057\u3001phpinfo\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p><strong>index.php<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">&lt;?php\r\necho phpinfo();<\/pre>\n<p>\u518d\u3073\u3001docker-compose up \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ docker-compose up -d<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u78ba\u8a8d\u3002<a href=\"http:\/\/192.168.99.100:8080\/\">http:\/\/192.168.99.100:8080\/<\/a>\u3067\u3001\u4ee5\u4e0b\u306e\u69d8\u306bphpinfo\u304c\u8868\u793a\u3057\u305f\u3089\u6210\u529f\uff01<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7659\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/332fe4e1ec446240c82079776d2f0c95.png\" alt=\"\" width=\"600\" height=\"411\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/332fe4e1ec446240c82079776d2f0c95.png 600w, https:\/\/www.webcyou.com\/wp-content\/uploads\/332fe4e1ec446240c82079776d2f0c95-300x206.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h4>mysql &#038; phpMyAdmin\u3092\u8ffd\u52a0<\/h4>\n<p>\u3088\u3057\u3001\u30b5\u30af\u30b5\u30af\u884c\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001mysql\u3068phpMyAdmin\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>phpMyAdmin\u306f\u30dd\u30fc\u30c88080\u3092\u4f7f\u7528\u3057\u3066\u8d77\u52d5\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001nginx\u306e\u30dd\u30fc\u30c8\u309280\u3067\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u70ba\u3001\u82e5\u5e72 \u300c<strong>docker-compose.yml\u300d<\/strong>\u3092\u4fee\u6b63\u3057\u3064\u3064\u3001<strong>mysql\u3068phpMyAdmin\u3092\u8ffd\u52a0<\/strong>\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>docker-compose.yml<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">version: '2'\r\n\r\nservices:\r\n  web:\r\n    image: nginx:latest\r\n    ports:\r\n      - \"80:80\"\r\n    volumes:\r\n      - .\/code:\/code\r\n      - .\/site.conf:\/etc\/nginx\/conf.d\/default.conf\r\n    links:\r\n      - php\r\n      - mysql:db\r\n  php:\r\n    image: php:fpm\r\n    volumes:\r\n      - .\/code:\/code\r\n      - .\/log.conf:\/usr\/local\/etc\/php-fpm.d\/zz-log.conf\r\n  mysql:\r\n    image: mysql:5.7.11\r\n    environment:\r\n      - MYSQL_ROOT_PASSWORD=root\r\n  phpmyadmin:\r\n    image: phpmyadmin\/phpmyadmin:4.5.3.1-1\r\n    ports:\r\n      - \"8080:8080\"\r\n    links:\r\n      - mysql:db<\/pre>\n<p>nginx\u3068\u3001phpMyAdmin\u306e\u65b9\u306b\u300clinks\u300d\u3067mysql:db\u3092\u8ffd\u52a0\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a2d\u5b9a\u3067\u3001\u518d\u3073\u3001docker-compose up \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">$ docker-compose up -d<\/pre>\n<p>\u30d6\u30e9\u30a6\u30b6\u78ba\u8a8d\u3002<a href=\"http:\/\/192.168.99.100:8080\/\">http:\/\/192.168.99.100:8080\/<\/a>\u3067\u3001\u4ee5\u4e0b\u306e\u69d8\u306bphpMyAdmin\u304c\u8868\u793a\u3057\u305f\u3089\u5927\u6210\u529f\uff01\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7664\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/eb95487b697fc404f5a6db1c83b1c17a.png\" alt=\"\" width=\"377\" height=\"458\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/eb95487b697fc404f5a6db1c83b1c17a.png 474w, https:\/\/www.webcyou.com\/wp-content\/uploads\/eb95487b697fc404f5a6db1c83b1c17a-247x300.png 247w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/p>\n<p>\u3068\u3001\u99c6\u3051\u8db3\u3067\u3057\u305f\u304c\u3001\u5fd9\u3057\u3044\u4eba\u5411\u3051\u306b\u3001docker-compose\u3092\u4f7f\u3048\u3070\u3001<strong>nginx + PHP7-fpm + mysql + phpMyAdmin \u306e\u74b0\u5883\u69cb\u7bc9<\/strong>\u3092\u30b5\u30af\u30c3\u3068\u7528\u610f\u3067\u304d\u3066\u826f\u3044\u3067\u3059\u306d\uff01<\/p>\n<p>docker\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3082\u884c\u304d\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u51fa\u9045\u308c\u611f\u3082\u3042\u308a\u307e\u3059\u306e\u3067w<\/p>\n<p>\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u3068\u3002\u3002<\/p>\n<p>\u4eca\u56de\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30bd\u30fc\u30b9\u306f\u3001Github\u306e\u65b9\u306b\u3082UP\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u66f4\u306b\u5fd9\u3057\u3044\u4eba\u306f git clone\u3057\u3066\u3001docker-compose up\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3050\u7acb\u3061\u4e0a\u304c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong>github<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/webcyou\/docker-nginx-php7\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/webcyou\/docker-nginx-php7<\/a><\/p>\n<p>\u3067\u306f\u3067\u306f\u3041\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\uff08\u3069\u3046\u3082\u3001\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8abf\u5b50\u304c\u60aa\u304f\u3001\u30bd\u30fc\u30b9\u304c\u898b\u3065\u3089\u3044\u72b6\u614b\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u304c\u3001<\/p>\n<p>\u73fe\u5728\u3001\u30b5\u30fc\u30d0\u30fc\u79fb\u884c &amp; \u74b0\u5883\u518d\u69cb\u7bc9\u4e2d\u306a\u306e\u3067\u3001\u305d\u306e\u969b\u306b\u76f4\u308a\u307e\u3059\u306e\u3067\u3057\u3070\u3057\u3054\u52d8\u5f01\u3092\u3002\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u3002\u3002mm\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3082\u3067\u3059\u3002 Docker\u306f\u3001\u8d77\u52d5\u3082\u65e9\u304f\u3066\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002 \u3067\u3082\u3001\u3061\u3087\u3063\u3068\u3057\u305fPHP\u306e\u5b9f\u884c\u74b0\u5883\u306e\u70ba\u306b\u3001 \u3044\u3061\u3044\u3061VirtualBox\u3067Vagrant\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001\u30a4\u30e1\u30fc\u30b8\u3092DockerHub\u304b\u3089\u3001pull\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u4f5c\u3063\u3066\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[229],"tags":[40,166,37,169,180,173,58,204,150,111,178,78,114,118],"class_list":["post-7657","post","type-post","status-publish","format-standard","hentry","category-docker","tag-ios-sdk","tag-iphone","tag-iphone-","tag-mac","tag-mysql","tag-php","tag-sdk","tag-switch","tag-vagrant","tag-wordpress-2","tag-178","tag-78","tag-114","tag-118"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7657"}],"version-history":[{"count":5,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7657\/revisions"}],"predecessor-version":[{"id":9211,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/7657\/revisions\/9211"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}