{"id":56855,"date":"2024-05-06T23:37:04","date_gmt":"2024-05-06T14:37:04","guid":{"rendered":"https:\/\/kinqsta.com\/jp\/?p=56855&#038;preview=true&#038;preview_id=56855"},"modified":"2024-05-08T20:18:04","modified_gmt":"2024-05-08T11:18:04","slug":"docker-php-ext-install","status":"publish","type":"post","link":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/","title":{"rendered":"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-docker\/\">Docker<\/a>\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3001\u51fa\u8377\u3001\u5b9f\u884c\u3092\u652f\u3048\u308b\u4eba\u6c17\u306e<a href=\"https:\/\/kinqsta.com\/jp\/blog\/open-source-vs-closed-source\/\">\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0<\/a>\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u30ab\u30d7\u30bb\u30eb\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u7570\u306a\u308b\u74b0\u5883\u9593\u3067\u3082\u4e00\u8cab\u6027\u304c\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4f9d\u5b58\u95a2\u4fc2\u306e\u885d\u7a81\u3084\u300c\u81ea\u5206\u306e\u30de\u30b7\u30f3\u3067\u306f\u52d5\u3044\u3066\u3044\u305f\u306e\u306b\u300d\u3068\u3044\u3063\u305f\u958b\u767a\u3068\u30c7\u30d7\u30ed\u30a4\u306e\u9593\u3067\u751f\u3058\u308b\u554f\u984c\u3092\u56de\u907fa\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>Docker\u3067\u306f\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/dockerfile-entrypoint\/\">Dockerfile<\/a>\u3092\u4f7f\u7528\u3057\u3066\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u30c4\u30fc\u30eb\u304c\u3001\u518d\u73fe\u53ef\u80fd\u3067\u5206\u96e2\u3055\u308c\u305f\u74b0\u5883\u306b\u3042\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>Kinsta\u306e<a href=\"https:\/\/sevalla.com\/application-hosting\/\">\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc<\/a>\u3067\u306f\u3001<a href=\"https:\/\/docs.sevalla.com\/applications\/build-options\/dockerfile\">Dockerfile<\/a>\u306e\u52d5\u7684\u306a\u30b5\u30dd\u30fc\u30c8\u306b\u3088\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u74b0\u5883\u3092\u3088\u308a\u67d4\u8edf\u306b\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Dockerfile\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001<a href=\"https:\/\/docs.sevalla.com\/applications\/build-options\/nixpacks\">Nixpacks<\/a>\u3084<a href=\"https:\/\/docs.sevalla.com\/applications\/build-options\/buildpacks\">Buildpacks<\/a>\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u306a\u3044\u8a00\u8a9e\u3082\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-php\/\">PHP<\/a>\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092Docker\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u53d6\u308a\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306bDocker\u3092\u4f7f\u7528\u3059\u308b\u5229\u70b9<\/h2>\n<p>Docker\u3092\u4f7f\u3063\u3066\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u74b0\u5883\u306e\u4e00\u8cab\u6027<\/strong>\u2500\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u4f9d\u5b58\u95a2\u4fc2\u3001\u69cb\u6210\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u958b\u767a\u74b0\u5883\u3001\u30c6\u30b9\u30c8\u74b0\u5883\u3001\u672c\u756a\u74b0\u5883\u306a\u3069\u306e\u7570\u306a\u308b\u69cb\u6210\u3084\u30b7\u30b9\u30c6\u30e0\u9593\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u74b0\u5883\u306e\u4e00\u8cab\u6027\u304c\u4fdd\u305f\u308c\u308b\u3002<\/li>\n<li><strong>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u4f9d\u5b58\u95a2\u4fc2\u306e\u89e3\u6c7a\u304c\u7c21\u5358<\/strong>\u2500\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3068\u69cb\u6210\u3092\u3059\u3079\u3066\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u74b0\u5883\u3092\u5bfe\u5fdc\u3059\u308b\u30de\u30b7\u30f3\u4e0a\u3067\u3082\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u53ef\u80fd\u3002\u4e92\u63db\u6027\u306e\u554f\u984c\u3084\u4f9d\u5b58\u95a2\u4fc2\u3092\u624b\u52d5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9593\u3092\u7701\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<li><strong>\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3068\u5206\u96e2<\/strong>\u2500\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u542b\u3080\u3059\u3079\u3066\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30b3\u30f3\u30c6\u30ca\u5185\u306b\u30ab\u30d7\u30bb\u30eb\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3067\u304d\u308b\u3002\u518d\u73fe\u6027\u3092\u4fc3\u9032\u3057\u3001\u7570\u306a\u308b\u4f9d\u5b58\u95a2\u4fc2\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u9593\u306e\u7af6\u5408\u3092\u6392\u9664\u3002<\/li>\n<\/ul>\n<p>\u3055\u3089\u306b\u3001Docker\u30b3\u30f3\u30c6\u30ca\u306f\u9694\u96e2\u3092\u63d0\u4f9b\u3057\u3001\u540c\u3058\u30b7\u30b9\u30c6\u30e0\u4e0a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f9d\u5b58\u95a2\u4fc2\u9593\u306e\u7af6\u5408\u3082\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>Kinsta\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b<\/h2>\n<p>Kinsta\u3067\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u3002MyKinsta\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001<a href=\"https:\/\/kinqsta.com\/jp\/signup\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210<\/a>\u3059\u308b\u3060\u3051\u3067\u3001\u9ad8\u6027\u80fd\u30b5\u30fc\u30d0\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d1\u30cd\u30eb\u3001\u304a\u3088\u3073\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304a\u3088\u3073\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u914d\u616e\u3057\u305f\u6a5f\u80fd\u4e00\u5f0f\u3092\u4f7f\u3044\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>PHY\u3001Python\u3001Node.js\u3001Ruby\u306a\u3069\u306e<a href=\"https:\/\/docs.sevalla.com\/applications\/overviewapplication-getting-started#main\">\u5e45\u5e83\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u5bfe\u5fdc<\/a>\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u591a\u69d8\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306e\u4e92\u63db\u6027\u304c\u4fdd\u8a3c\u3055\u308c\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u9069\u3057\u305f\u8a00\u8a9e\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>PHP\u3092\u4f7f\u3063\u305f\u52d5\u7684\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/what-is-node-js\/\">Node.js<\/a>\u3092\u4f7f\u3063\u305fRESTful API\u3001Python\u3092\u4f7f\u3063\u305f\u30c7\u30fc\u30bf\u99c6\u52d5\u578b\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u3042\u3089\u3086\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u74b0\u5883\u3067\u3001\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u4fe1\u983c\u6027\u3001\u305d\u3057\u3066\u4e00\u6d41\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Kinsta\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067Dockerfile\u3092\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092\u4f53\u9a13\u3059\u308b\u306b\u306f\u3001\u3053\u308c\u304b\u3089\u3054\u7d39\u4ecb\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u5165\u529b\u691c\u8a3c\u7528\u306e<a href=\"https:\/\/github.com\/Respect\/Validation\" target=\"_blank\" rel=\"noopener noreferrer\">respect\/validation<\/a>\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30cf\u30c3\u30b7\u30e5\u5316\u3059\u308b\u305f\u3081\u306e<a href=\"https:\/\/github.com\/ircmaxell\/password_compat\" target=\"_blank\" rel=\"noopener noreferrer\">ircmaxell\/password-compat<\/a>\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e composer\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2>Docker\u74b0\u5883\u3092\u6e96\u5099\u3059\u308b<\/h2>\n<p>Dockerfile\u306f\u3001\u5fc5\u8981\u306a\u30a4\u30e1\u30fc\u30b8\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u30b3\u30de\u30f3\u30c9\u3092\u9069\u5207\u306a\u9806\u306b\u4e26\u3079\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306e\u30d9\u30fc\u30b7\u30c3\u30af\u306aDockerfile\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-yaml\">FROM php:8.3-cli\nCOPY . \/usr\/src\/myapp\nWORKDIR \/usr\/src\/myapp\nCMD [ \"php\", \".\/your-script.php\" ]<\/code><\/pre>\n<p>\u3053\u306eDockerfile\u306f\u3001PHP\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff08CLI\uff09\u304b\u3089\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u516c\u5f0f\u306ePHP\u30a4\u30e1\u30fc\u30b8\u3092\u30d0\u30ea\u30a2\u30f3\u30c8\u3067\u4f7f\u7528\u3057\u3001PHP\u30e9\u30f3\u30bf\u30a4\u30e0\u306e\u307f\u304c\u30b3\u30f3\u30c6\u30ca\u306b\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001Dockerfile\u3092\u542b\u3080\u30ed\u30fc\u30ab\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u3092\u30b3\u30f3\u30c6\u30ca\u5185\u306e<strong>\/usr\/src\/myapp<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092<strong>\/usr\/src\/myapp<\/strong>\u306b\u8a2d\u5b9a\u3057\u305f\u5f8c\u3001<code>php<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u5b9f\u884c\u3059\u308bPHP\u30b9\u30af\u30ea\u30d7\u30c8<strong>your-script.php<\/strong>\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30e1\u30fc\u30b8\u306b\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6e08\u307f\u306ePHP\u62e1\u5f35\u6a5f\u80fd\u304c\u591a\u6570\u542b\u307e\u308c\u308b\u305f\u3081\u3001\u307e\u305a\u306f<code>php -m<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u5fc5\u8981\u306a\u62e1\u5f35\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u62e1\u5f35\u304c\u898b\u5f53\u305f\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30d8\u30eb\u30d1\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7528\u3044\u3066\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ul>\n<li><code>docker-php-ext-configure<\/code><\/li>\n<li><code>docker-php-ext-install<\/code><\/li>\n<li><code>docker-php-ext-enable<\/code><\/li>\n<\/ul>\n<p>\u4f8b\u3048\u3070\u3001\u4eca\u56de\u306e\u30c7\u30e2\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001<a href=\"https:\/\/www.php.net\/manual\/en\/book.mysqli.php\" target=\"_blank\" rel=\"noopener noreferrer\">mysqli\u62e1\u5f35<\/a>\u3092\u4f7f\u3063\u3066MariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3084\u308a\u53d6\u308a\u3057\u307e\u3059\u3002\u3053\u306e\u62e1\u5f35\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066Dockerfile\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-yaml\">RUN docker-php-ext-install mysqli<\/code><\/pre>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306eDockerfile\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u300c<strong>Dockerfile<\/strong>\u300d\u3068\u3044\u3046\u540d\u524d\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-yaml\">FROM php:8.3-apache\n\n# MySQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001\u30b5\u30fc\u30d0\u30fc\u3001\u305d\u306e\u4ed6\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nRUN apt-get update && \\\n\tapt-get install -y \\\n\tdefault-mysql-client \\\n\tdefault-mysql-server \\\n\tgit \\\n\t&& apt-get clean \\\n\t&& rm -rf \/var\/lib\/apt\/lists\/*\n\n# MySQL\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308bmysqli PHP\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nRUN docker-php-ext-install mysqli<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u3001Apache\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f<a href=\"https:\/\/hub.docker.com\/_\/php\" target=\"_blank\" rel=\"noopener noreferrer\">\u516c\u5f0f\u306ePHP\u30a4\u30e1\u30fc\u30b8<\/a>\uff08\u30d0\u30fc\u30b8\u30e7\u30f38.3\uff09\u3092\u4f7f\u7528\u3057\u3001Apache\u3092\u30b3\u30f3\u30c6\u30ca\u306e\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u306e\u30a4\u30e1\u30fc\u30b8\u304c\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306bApatch\u3092\u4f7f\u7528\u3059\u308bPHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u74b0\u5883\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u3001<a href=\"https:\/\/docs.sevalla.com\/databases\/import-export\/mariadb\">MariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/a>\u3092\u4f5c\u6210\u3057\u64cd\u4f5c\u3059\u308b<code>default-mysql-client<\/code>\u3084<code>default-mysql-server<\/code>\u306a\u3069\u3001\u30c7\u30e2\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3068\u3059\u308b\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<code>docker-php-ext-install<\/code>\u3092\u4f7f\u7528\u3057\u3066<code>mysqli<\/code>PHP\u62e1\u5f35\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30c7\u30e2\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u63a5\u7d9a\u3092\u78ba\u7acb\u3057\u3066\u3001MariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u3067\u64cd\u4f5c\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>Docker\u3067\u4f9d\u5b58\u95a2\u4fc2\u3092\u7ba1\u7406\u3059\u308b<\/h2>\n<p>Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u7ba1\u7406\u3059\u308b\u306b\u306f\u3001PHP\u7528\u306e\u4e00\u822c\u7684\u306a\u4f9d\u5b58\u95a2\u4fc2\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3067\u3042\u308b<a href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Composer<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Composer\u3092Docker\u30b3\u30f3\u30c6\u30ca\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u66f4\u65b0\u3001\u7ba1\u7406\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u52b9\u7387\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u7ba1\u7406\u306bComposer\u3092\u4f7f\u7528\u3059\u308b\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u3059\u3079\u3066<strong>Dockerfile<\/strong>\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol start=\"1\">\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001Composer\u3092Docker\u30a4\u30e1\u30fc\u30b8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\n<pre><code class=\"language-yaml\"># Composer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nCOPY --from=composer\/composer:latest-bin \/composer \/usr\/bin\/composer<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001Docker Hub\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30d3\u30eb\u30c9\u6e08\u307f\u306eComposer\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<code>--from=composer\/composer:latest-bin<\/code>\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3059\u308b\u30bd\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30bd\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u306e<code>\/composer<\/code>\u30d1\u30b9\u306b\u306f\u30b3\u30d4\u30fc\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u307e\u3059\u3002Docker\u30a4\u30e1\u30fc\u30b8\u306e<code>\/usr\/bin\/composer<\/code>\u30d1\u30b9\u304c\u3001\u3053\u308c\u3089\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u5148\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u3066\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3059\u308b\u3002\n<pre><code class=\"language-yaml\"># \u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\nWORKDIR \/var\/www\/html<\/code><\/pre>\n<\/li>\n<li><strong>composer.json<\/strong>\u3068<strong>composer.lock<\/strong>\u3092\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002\n<pre><code class=\"language-yaml\"># composer.json\u3068composer.lock\u3092\u30b3\u30d4\u30fc\nCOPY composer.json composer.lock .\/<\/code><\/pre>\n<\/li>\n<li><strong>composer.json<\/strong>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308bComposer\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\n<pre><code class=\"language-yaml\"># Composer\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nRUN composer install --no-dev --optimize-autoloader<\/code><\/pre>\n<p><code>--no-dev<\/code>\u306f\u958b\u767a\u56fa\u6709\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u30b9\u30ad\u30c3\u30d7\u3001<code>--optimize-autoloader<\/code>\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a\u306e\u305f\u3081\u306e\u30aa\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u306e\u6700\u9069\u5316\u3092\u6307\u793a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066<strong>composer.json<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u5236\u7d04\u3092\u66f4\u65b0\u3057\u305f\u308a\u3001\u4e0d\u8981\u306b\u306a\u3063\u305f\u4f9d\u5b58\u95a2\u4fc2\u3092\u524a\u9664\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u3067\u3001\u968f\u6642\u4f9d\u5b58\u95a2\u4fc2\u3092\u66f4\u65b0\u30fb\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u5909\u66f4\u3092\u884c\u3063\u305f\u5f8c\u306f\u3001<code>composer install<\/code>\u307e\u305f\u306f<code>composer update<\/code>\u3092Docker\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u5b9f\u884c\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u305f\u306f\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<h3>\u672c\u7a3c\u50cd\u524d\u306e\u8a2d\u5b9a\u3092\u9069\u7528\u3059\u308b<\/h3>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Docker\u3067\u52d5\u4f5c\u3055\u305b\u308b\u524d\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3001\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3092Docker\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30d4\u30fc\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u3001\u5404\u30b3\u30fc\u30c9\u3092Dockerfile\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol start=\"1\">\n<li>PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304cMariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306e\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\uff08<code>DB_USER<\/code>\u3001<code>DB_PASSWORD<\/code>\u3001<code>DB_NAME<\/code>\u306f\u4efb\u610f\u306e\u8a8d\u8a3c\u60c5\u5831\u3067\u7f6e\u304d\u63db\u3048\u308b\uff09\u3002\n<pre><code class=\"language-yaml\"># \u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\nENV DB_HOST=localhost \\\n\tDB_USER=kinsta_user \\\n\tDB_PASSWORD=your_password_here \\\n\tDB_NAME=kinsta_docker_auth \\\n\t# MariaDB\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u63a5\u7d9a\u306b\u4f7f\u7528\u3059\u308bUnix\u30bd\u30b1\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\n\tDB_SOCKET=\/var\/run\/mysqld\/mysqld.sock<\/code><\/pre>\n<\/li>\n<li>PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092Docker\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002\n<pre><code class=\"language-yaml\"># PHP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30d4\u30fc\nCOPY . .<\/code><\/pre>\n<\/li>\n<li>\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002\n<pre><code class=\"language-yaml\"># \u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b3\u30d4\u30fc\nCOPY scripts\/start.sh \/usr\/local\/bin\/start.sh<\/code><\/pre>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30b3\u30f3\u30c6\u30ca\u306e\u8d77\u52d5\u6642\u306b\u5b9f\u884c\u3055\u308c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u30c6\u30fc\u30d6\u30eb\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u304a\u3088\u3073Apache\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u3092\u884c\u3044\u307e\u3059\uff08\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u5f8c\u307b\u3069\u4f5c\u6210\uff09\u3002<\/li>\n<li><code><a href=\"https:\/\/www.geeksforgeeks.org\/chmod-command-linux\/\" target=\"_blank\" rel=\"noopener noreferrer\">chmod<\/a><\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u53ef\u80fd\u306b\u3059\u308b\u3002\n<pre><code class=\"language-yaml\"># \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u53ef\u80fd\u306b\u3059\u308b\nRUN chmod +x \/usr\/local\/bin\/start.sh<\/code><\/pre>\n<\/li>\n<li>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3002\n<pre><code class=\"language-yaml\"># \u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\nCMD [\"\/usr\/local\/bin\/start.sh\"]<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>Docker\u30d5\u30a1\u30a4\u30eb\u304c\u5b8c\u6210\u3057\u305f\u3089\u3001\u30b9\u30bf\u30fc\u30c8\u30a2\u30c3\u30d7\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u300c<strong>scripts\/start.sh<\/strong>\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002Dockerfile\u3067\u5b9a\u7fa9\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a8d\u8a3c\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-bash\">#!\/bin\/bash\n\n# MariaDB\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\nservice mariadb start\n\n# MariaDB\u304c\u5b8c\u5168\u306b\u521d\u671f\u5316\u3055\u308c\u308b\u306e\u3092\u5f85\u3064\uff08\u6700\u592730\u56de\u518d\u8a66\u884c\u3057\u3001\u5404\u8a66\u884c\u306e\u9593\u306f1\u79d2\u5f85\u3064\uff09\nattempt=0\nwhile [ $attempt -lt 30 ]; do\n\t\tif mysqladmin ping &&gt;\/dev\/null; then\n    \t\techo \"MariaDB is up and running.\"\n    \t\tbreak\n\t\telse\n    \t\techo \"MariaDB is not yet available. Retrying...\"\n    \t\tattempt=$((attempt+1))\n    \t\tsleep 1\n\t\tFi\ndone\n\n# \u6307\u5b9a\u3055\u308c\u305f\u8a66\u884c\u56de\u6570\u5185\u306bMariaDB\u306e\u8d77\u52d5\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u3001\u30a8\u30e9\u30fc\u3067\u7d42\u4e86\nif [ $attempt -eq 30 ]; then\n\t\techo \"Error: MariaDB failed to start within the specified time.\"\n\t\texit 1\nfi\n\n# \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\ndbname=\"kinsta_docker_auth\"\ndbuser=\"kinsta_user\"\ndbpassword=\"your_password_here\"\n\n# \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u4f5c\u6210\nmysql -u root -e \"CREATE DATABASE IF NOT EXISTS $dbname;\"\n\n# \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u6a29\u9650\u3092\u5272\u308a\u5f53\u3066\u308b\nmysql -u root -e \"CREATE USER '$dbuser'@'localhost' IDENTIFIED BY '$dbpassword';\"\nmysql -u root -e \"GRANT ALL PRIVILEGES ON $dbname.* TO '$dbuser'@'localhost';\"\nmysql -u root -e \"FLUSH PRIVILEGES;\"\n\n# users\u30c6\u30fc\u30d6\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u4f5c\u6210\nmysql -u root -e \"USE $dbname; CREATE TABLE IF NOT EXISTS users (\n\t\tid INT AUTO_INCREMENT PRIMARY KEY,\n\t\tusername VARCHAR(20) UNIQUE NOT NULL,\n\t\tpassword_hash VARCHAR(255) NOT NULL\n);\"\n\n# Apache\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\napache2ctl -D FOREGROUND<\/code><\/pre>\n<p>\u3053\u306e<a href=\"https:\/\/kinqsta.com\/blog\/scripting-languages\/#8-bash\">bash\u30b9\u30af\u30ea\u30d7\u30c8<\/a>\u306b\u3088\u308a\u3001\u307e\u305aMariaDB\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u304c\u5b8c\u5168\u306b\u521d\u671f\u5316\u3055\u308c\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\u9069\u5207\u306a\u6a29\u9650\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u751f\u6210\u3055\u308c\u3001\u6700\u5f8c\u306bApache\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<h2>Kinsta\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/h2>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Kinsta\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u524d\u306b\u3001Apache\u30b5\u30fc\u30d0\u30fc\u7528\u306b\u3044\u304f\u3064\u304b\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002Kinsta\u306e<a href=\"https:\/\/sevalla.com\/application-hosting\/\">\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc<\/a>\u3067\u306f\u3001<code>80<\/code>\u756a\u3068<code>443<\/code>\u756a\u30dd\u30fc\u30c8\u304c\u958b\u3044\u3066\u3044\u307e\u3059\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f55\u3089\u304b\u306e\u30dd\u30fc\u30c8\u3092\u516c\u958b\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001<code>8080<\/code>\u756a\u30dd\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Apache\u30b5\u30fc\u30d0\u30fc\u306f<code>80<\/code>\u756a\u30dd\u30fc\u30c8\u3067\u63a5\u7d9a\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u305f\u3081\u3001<code>8080<\/code>\u756a\u30dd\u30fc\u30c8\u3067\u63a5\u7d9a\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol start=\"1\">\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u300c<strong>apache-conf<\/strong>\u300d\u3068\u3044\u3046\u540d\u524d\u3067\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3002<\/li>\n<li>\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u300c<strong>apache-config.conf<\/strong>\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u30018080\u756a\u30dd\u30fc\u30c8\u3067\u63a5\u7d9a\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u3088\u3046\u306b Apache\u3092\u8a2d\u5b9a\u3002\n<pre><code class=\"language-bash\">&lt;VirtualHost *:8080&gt;\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/var\/www\/html\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n<\/li>\n<li><strong>apache-conf<\/strong>\u30d5\u30a9\u30eb\u30c0\u306b\u300c<strong>apache-ports.conf<\/strong>\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3002\n<pre><code class=\"language-bash\"># Listen\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u30928080\u756a\u30dd\u30fc\u30c8\u3067\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\nListen 8080\n\n# 443\u756a\u30dd\u30fc\u30c8\u306e\u65e2\u5b58\u306e\u8a2d\u5b9a\u3092\u7dad\u6301\n&lt;IfModule ssl_module&gt;\n\tListen 443\n&lt;\/IfModule&gt;\n\n&lt;IfModule mod_gnutls.c&gt;\n\tListen 443\n&lt;\/IfModule&gt;<\/code><\/pre>\n<p><code>Listen 8080<\/code>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u30018080\u756a\u30dd\u30fc\u30c8\u3067\u7740\u4fe1\u63a5\u7d9a\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u3088\u3046\u306bApache\u306b\u6307\u793a\u3057\u307e\u3059\u3002<\/li>\n<li>\u3053\u306e\u8a2d\u5b9a\u3092Apache\u30b5\u30fc\u30d0\u30fc\u306b\u9069\u7528\u3059\u308b\u305f\u3081\u306b\u3001Dockerfile\u3092\u7de8\u96c6\u3059\u308b\u3002Dockerfile\u3067\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a2d\u5b9a\u3059\u308b\u30b3\u30de\u30f3\u30c9\uff08<code>WORKDIR \/var\/www\/html<\/code>\uff09\u306e\u76f4\u5f8c\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308a\u3001\u72ec\u81ea\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u5207\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\n<pre><code class=\"language-yaml\"># Apache\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3092\u8a2d\u5b9a\nCOPY apache-conf\/apache-config.conf \/etc\/apache2\/sites-available\/000-default.conf\n\n# Apache\u306e\u30dd\u30fc\u30c8\u3092\u8a2d\u5b9a\nCOPY apache-conf\/apache-ports.conf \/etc\/apache2\/ports.conf<\/code><\/pre>\n<\/li>\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u300c<strong>.dockerignore<\/strong>\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3001Docker\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30d4\u30fc\u3057\u306a\u3044\u30d5\u30a9\u30eb\u30c0\u3068\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u89a7\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002<strong>vendor<\/strong>\u30d5\u30a9\u30eb\u30c0\u3092\u9664\u5916\u3059\u308b\u306b\u306f\u3001<code>vendor<\/code>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001Kinsta\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u4efb\u610f\u306eGit\u30b5\u30fc\u30d3\u30b9\uff08<a href=\"https:\/\/docs.sevalla.com\/applications\/git\/bitbucket#grant-access-to-the-kinsta-bitbucket-application\">Bitbucket<\/a>\u3001<a href=\"https:\/\/docs.sevalla.com\/applications\/git\/github#authenticate-and-authorize\">GitHub<\/a>\u3001<a href=\"https:\/\/docs.sevalla.com\/applications\/git\/gitlab#authorize-the-kinsta-gitlab-application\">GitLab<\/a>\uff09\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol start=\"1\">\n<li><a href=\"https:\/\/my.kinqsta.com\/?lang=ja\" target=\"_blank\" rel=\"noopener noreferrer\">MyKinsta<\/a>\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u5de6\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u300c<strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/strong>\u300d\u3092\u958b\u3044\u3066\u3001\u300c<strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/li>\n<li>\u300c<strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8ffd\u52a0<\/strong>\u300d\u753b\u9762\u3067Git\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u30d6\u30e9\u30f3\u30c1\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u3001\u30c7\u30fc\u30bf\u30bb\u30f3\u30bf\u30fc\u306e\u6240\u5728\u5730\u3092\u9078\u629e\u307e\u305f\u306f\u5165\u529b\u3057\u3001\u300c<strong>\u7d9a\u884c<\/strong>\u300d\u3067\u6b21\u306b\u9032\u3080\u3002<\/li>\n<li>\u300c<strong>\u30d3\u30eb\u30c9\u74b0\u5883<\/strong>\u300d\u753b\u9762\u3067\u300c<strong>Dockerfile\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u8a2d\u5b9a<\/strong>\u300d\u3092\u9078\u629e\u3059\u308b\u3002\u300c<strong>Dockerfile\u306e\u30d1\u30b9<\/strong>\u300d\u306b\u306f\u300cDockerfile\u300d\u3001\u300c<strong>\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8<\/strong>\u300d\u306b\u306f\u300c.\u300d\u3092\u8a2d\u5b9a\u3057\u3001\u300c<strong>\u7d9a\u884c<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002\n<p><figure id=\"attachment_105526\" aria-describedby=\"caption-attachment-105526\" style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2024\/04\/build-environment.png\" alt=\"The Build environment options, select the Dockerfile option and specify its file path\" width=\"1001\" height=\"471\"><figcaption id=\"caption-attachment-105526\" class=\"wp-caption-text\">Add application\u30d5\u30a9\u30fc\u30e0\u306eBuild environment\u30bb\u30af\u30b7\u30e7\u30f3\u3002<\/figcaption><\/figure><\/li>\n<li>\u300c<strong>\u30d7\u30ed\u30bb\u30b9\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/strong>\u300d\u753b\u9762\u306f\u5909\u66f4\u305b\u305a\u3001\u305d\u306e\u307e\u307e\u300c<strong>\u7d9a\u884c<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<strong>\u6ce8<\/strong>\uff09\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u518d\u8d77\u52d5\u307e\u305f\u306f\u518d\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u306f\u5931\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u554f\u984c\u304c\u3042\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/docs.sevalla.com\/applications\/storage\">\u6c38\u7d9a\u30b9\u30c8\u30ec\u30fc\u30b8<\/a>\u3092\u5229\u7528\u3057\u3066\u3053\u306e\u753b\u9762\u3067\u9069\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>\u300c<strong>\u6700\u7d42\u78ba\u8a8d<\/strong>\u300d\u753b\u9762\u3067\u652f\u6255\u3044\u60c5\u5831\u3092\u78ba\u8a8d\u3057\u305f\u4e0a\u3067\u3001\u300c<strong>\u4eca\u3059\u3050\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/li>\n<li>\u30c7\u30d7\u30ed\u30a4\u306e\u5b8c\u4e86\u5f8c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u672c\u756a\u30b5\u30a4\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u3002\n<figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2024\/04\/live-site.png\" alt=\"\u672c\u756a\u30b5\u30a4\u30c8\u306e\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">\u672c\u756a\u30b5\u30a4\u30c8\u306e\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8<\/figcaption><\/figure>\n<p>\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u767b\u9332\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3089\u3001\u30da\u30fc\u30b8\u304c\u4fdd\u8b77\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3001\u305d\u3057\u3066\u3059\u3079\u3066\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><figure style=\"width: 1001px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinqsta.com\/wp-content\/uploads\/2024\/04\/login-homepage.png\" alt=\"\u30ed\u30b0\u30a4\u30f3\u5f8c\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\" width=\"1001\" height=\"471\"><figcaption class=\"wp-caption-text\">\u30ed\u30b0\u30a4\u30f3\u5f8c\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8<\/figcaption><\/figure><\/li>\n<\/ol>\n<h2>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u76e3\u8996\u3068\u6700\u9069\u5316<\/h2>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Kinsta\u3067\u672c\u7a3c\u50cd\u3057\u305f\u5f8c\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u76e3\u8996\u3057\u3066\u6700\u9069\u5316\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u52d5\u304b\u3057\u3066\u3001\u30ea\u30bd\u30fc\u30b9\u3092\u52b9\u7387\u7684\u306b\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u9ad8\u901f\u3067\u5fdc\u7b54\u6027\u306e\u9ad8\u3044\u30e6\u30fc\u30b6\u30fc\u4f53\u9a13\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Kinsta\u3067\u306f\u3001<a href=\"https:\/\/kinqsta.com\/jp\/blog\/wordpress-performance\/\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316<\/a>\u3092\u5e38\u306b\u91cd\u8996\u3057\u3066\u304a\u308a\u3001\u5e2f\u57df\u5e45\u3001\u7dcf\u30d3\u30eb\u30c9\u6642\u9593\u3001CPU\u4f7f\u7528\u91cf\u3001\u30e1\u30e2\u30ea\u6d88\u8cbb\u91cf\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3001\u5fdc\u7b54\u6642\u9593\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6307\u6a19\u3092\u8ffd\u8de1\u3059\u308b\u5305\u62ec\u7684\u306a\u76e3\u8996\u30c4\u30fc\u30eb\u3092\u642d\u8f09\u3057\u3066\u3044\u307e\u3059\u3002MyKinsta\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u300c<strong>\u5206\u6790<\/strong>\u300d\u753b\u9762\u3092\u958b\u304f\u3068\u3001\u3053\u308c\u3089\u306e\u60c5\u5831\u3092\u3059\u3079\u3066\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u554f\u984c\u3084\u4e88\u671f\u3057\u306a\u3044\u52d5\u4f5c\u304c\u898b\u3089\u308c\u305f\u5834\u5408\u306f\u3001MyKinsta\u306e\u300c<strong>\u30ed\u30b0<\/strong>\u300d\u753b\u9762\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u52d5\u4f5c\u306e\u6982\u8981\u306b\u306f\u3001\u30a8\u30e9\u30fc\u30ed\u30b0\u3068\u30a2\u30af\u30bb\u30b9\u30ed\u30b0\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u3092\u5206\u6790\u3059\u308b\u3053\u3068\u3067\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3001\u30b9\u30bf\u30c3\u30af\u30c8\u30ec\u30fc\u30b9\u3001\u307e\u305f\u306f\u7570\u5e38\u306a\u52d5\u4f5c\u306e\u30d1\u30bf\u30fc\u30f3\u306a\u3069\u3001\u554f\u984c\u306e\u3042\u308b\u8981\u7d20\u306b\u95a2\u3059\u308b\u30a4\u30f3\u30b5\u30a4\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u554f\u984c\u306e\u6839\u672c\u7684\u306a\u539f\u56e0\u3092\u7279\u5b9a\u3057\u3001\u9069\u5207\u306a\u89e3\u6c7a\u7b56\u3092\u8b1b\u3058\u308b\u306e\u306b\u6709\u7528\u3067\u3059\u3002<\/p>\n<p>\u3055\u3089\u306bDocker\u30a4\u30e1\u30fc\u30b8\u306e\u6700\u9069\u5316\u3084\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3068\u30b3\u30fc\u30c9\u6700\u9069\u5316\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306e\u5b9f\u88c5\u306a\u3069\u3001Docker\u74b0\u5883\u5185\u3067\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u3092\u884c\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Docker\u306e\u8efd\u91cf\u3067\u30dd\u30fc\u30bf\u30d6\u30eb\u306a\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u57fa\u76e4\u3068\u306a\u308b\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u3092\u554f\u308f\u305a\u3001\u5fc5\u8981\u306a\u4f9d\u5b58\u95a2\u4fc2\u3092\u6301\u3064\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7c21\u5358\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3066\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30b3\u30f3\u30c6\u30ca\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u7570\u306a\u308b\u74b0\u5883\u9593\u3067\u3082\u4e00\u8cab\u6027\u3092\u4fdd\u3061\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u52b9\u7387\u5316\u3057\u3066\u3001\u3088\u308a\u826f\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Kinsta\u3067Docker\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u30d7\u30ed\u30bb\u30b9\u304c\u5f37\u5316\u3055\u308c\u307e\u3059\u3002Dockerfile\u3001\u305d\u3057\u3066PHP\u3092\u306f\u3058\u3081\u3068\u3059\u308b\u591a\u6570\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e92\u63db\u6027\u3068\u67d4\u8edf\u6027\u3082\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/docs.sevalla.com\/applications\/get-started\/infrastructure\">Kinsta\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30a4\u30f3\u30d5\u30e9<\/a>\u3068Docker\u306e\u30b3\u30f3\u30c6\u30ca\u5316\u6280\u8853\u3092\u6d3b\u7528\u3057\u3001\u52b9\u7387\u7684\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u3001\u9ad8\u3044\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Docker\u3092\u4f7f\u7528\u3057\u305f\u7d4c\u9a13\u306f\u3042\u308a\u307e\u3059\u304b\uff1fDocker\u306b\u95a2\u3059\u308b\u3054\u8cea\u554f\u3084\u3054\u610f\u898b\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3001\u51fa\u8377\u3001\u5b9f\u884c\u3092 &#8230;<\/p>\n","protected":false},"author":199,"featured_media":56856,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[764,797],"class_list":["post-56855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-docker","topic-php-function"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff5cKinsta\u00ae<\/title>\n<meta name=\"description\" content=\"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-06T14:37:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-08T11:18:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeremy Holcombe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker-1024x512.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeremy Holcombe\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/\"},\"author\":{\"name\":\"Jeremy Holcombe\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21\"},\"headline\":\"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2024-05-06T14:37:04+00:00\",\"dateModified\":\"2024-05-08T11:18:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/\"},\"wordCount\":183,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/\",\"name\":\"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff5cKinsta\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg\",\"datePublished\":\"2024-05-06T14:37:04+00:00\",\"dateModified\":\"2024-05-08T11:18:04+00:00\",\"description\":\"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinqsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker\",\"item\":\"https:\/\/kinqsta.com\/jp\/topics\/docker\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#website\",\"url\":\"https:\/\/kinqsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinqsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinqsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21\",\"name\":\"Jeremy Holcombe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g\",\"caption\":\"Jeremy Holcombe\"},\"description\":\"Senior Editor at Kinsta, WordPress Web Developer, and Content Writer. Outside of all things WordPress, I enjoy the beach, golf, and movies. I also have tall people problems.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/jeremyholcombe\/\"],\"url\":\"https:\/\/kinqsta.com\/jp\/blog\/author\/jeremyholcombe\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff5cKinsta\u00ae","description":"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/","og_locale":"ja_JP","og_type":"article","og_title":"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5","og_description":"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002","og_url":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2024-05-06T14:37:04+00:00","article_modified_time":"2024-05-08T11:18:04+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg","type":"image\/jpeg"}],"author":"Jeremy Holcombe","twitter_card":"summary_large_image","twitter_description":"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002","twitter_image":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker-1024x512.jpg","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Jeremy Holcombe","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#article","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/"},"author":{"name":"Jeremy Holcombe","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21"},"headline":"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5","datePublished":"2024-05-06T14:37:04+00:00","dateModified":"2024-05-08T11:18:04+00:00","mainEntityOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/"},"wordCount":183,"commentCount":0,"publisher":{"@id":"https:\/\/kinqsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/","url":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/","name":"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff5cKinsta\u00ae","isPartOf":{"@id":"https:\/\/kinqsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage"},"thumbnailUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg","datePublished":"2024-05-06T14:37:04+00:00","dateModified":"2024-05-08T11:18:04+00:00","description":"Docker\u30b3\u30f3\u30c6\u30ca\u5185\u306bPHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3084\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3076\u3053\u3068\u3067\u3001\u958b\u767a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#primaryimage","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/04\/wp-how-to-install-php-dependencies-and-extensions-with-docker.jpg","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinqsta.com\/jp\/blog\/docker-php-ext-install\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinqsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"Docker","item":"https:\/\/kinqsta.com\/jp\/topics\/docker\/"},{"@type":"ListItem","position":3,"name":"Docker\u3067PHP\u306e\u4f9d\u5b58\u95a2\u4fc2\u3068\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinqsta.com\/jp\/#website","url":"https:\/\/kinqsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinqsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinqsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinqsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinqsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinqsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/4eee42881d7b5a73ebb4f58dd5223b21","name":"Jeremy Holcombe","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinqsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e17001f3bb37dbbe54fceef9bb547fa?s=96&d=mm&r=g","caption":"Jeremy Holcombe"},"description":"Senior Editor at Kinsta, WordPress Web Developer, and Content Writer. Outside of all things WordPress, I enjoy the beach, golf, and movies. I also have tall people problems.","sameAs":["https:\/\/www.linkedin.com\/in\/jeremyholcombe\/"],"url":"https:\/\/kinqsta.com\/jp\/blog\/author\/jeremyholcombe\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/56855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/users\/199"}],"replies":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/comments?post=56855"}],"version-history":[{"count":8,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/56855\/revisions"}],"predecessor-version":[{"id":57316,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/posts\/56855\/revisions\/57316"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/translations\/pt"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/translations\/jp"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/translations\/es"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/translations\/fr"},{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/56855\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media\/56856"}],"wp:attachment":[{"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/media?parent=56855"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/tags?post=56855"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinqsta.com\/jp\/wp-json\/wp\/v2\/topic?post=56855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}