{"id":14073,"date":"2026-03-12T10:00:00","date_gmt":"2026-03-12T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=14073"},"modified":"2026-03-11T17:59:23","modified_gmt":"2026-03-11T08:59:23","slug":"windows-11-docker-laravel-vue-js-%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%82%ac%e3%82%a4%e3%83%89-5","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/14073","title":{"rendered":"Windows 11 + Docker \/ Laravel + Vue.js \u74b0\u5883\u69cb\u7bc9\u30ac\u30a4\u30c9 #5"},"content":{"rendered":"\n<p>\u672c\u8a18\u4e8b\u306f <a href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/14063\" target=\"_blank\" rel=\"noreferrer noopener\">Windows 11 + Docker \/ Laravel + Vue.js \u74b0\u5883\u69cb\u7bc9\u30ac\u30a4\u30c9 #4<\/a> \u306e\u7d9a\u304d\u3067\u3059\u3002<\/p>\n\n\n\n<h3>\u958b\u767a\u74b0\u5883\u306e\u8a2d\u5b9a<\/h3>\n\n\n\n<h4>5-1. Git\u8a2d\u5b9a<\/h4>\n\n\n\n<ol><li>Windows \u306e <code>Zone.Identifier<\/code> \u524a\u9664:<br><br><\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo find . -type f -name '*:Zone.Identifier' -exec rm {} \\;\n\n<\/code><\/pre>\n\n\n\n<ol start=\"2\"><li><code>.gitignore<\/code> \u306b\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li><\/ol>\n\n\n\n<ul><li>\u4ee5\u4e0b\u3092 <code>.gitignore<\/code> \u306b\u8ffd\u8a18:<br><br>\/docker\/db\/data<\/li><\/ul>\n\n\n\n<p>\u203bWSL \u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6\u306e\u305f\u3081\u3001Ubuntu\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3078\u79fb\u52d5\u3057\u3001VS Code \u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/projects\/laravel_project\ncode .<\/code><\/pre>\n\n\n\n<p><br>\u5de6\u4e0b\u306b <strong>[WSL: Ubuntu]<\/strong> \u3068\u8868\u793a\u3055\u308c\u305f\u72b6\u614b\u3067VS Code\u304c\u8d77\u52d5\u3067\u304d\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"375\" height=\"190\" src=\"https:\/\/www.gigas-jp.com\/appnews\/wp-content\/uploads\/sites\/4\/2026\/03\/22dc0c30e8f44a506ff9934023a6ff37.png\" alt=\"\" class=\"wp-image-14074\" \/><\/figure>\n\n\n\n<p>\u6a29\u9650\u3067\u7de8\u96c6\u30fb\u4fdd\u5b58\u304c\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u3092\u5b9f\u884c:<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R $USER:$USER .\n\n<\/code><\/pre>\n\n\n\n<ol start=\"3\"><li>Git \u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\uff08\u4f8b\uff09:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>git config --global user.name \"\u5c71\u7530\u592a\u90ce\"\ngit config --global user.email \"yamada@example.com\"<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4><br>5-2. DB\u63a5\u7d9a\u30c6\u30b9\u30c8<br><\/h4>\n\n\n\n<ol><li><code>.env<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001Docker \u306e DB \u8a2d\u5b9a\u306b\u5408\u308f\u305b\u307e\u3059\u3002<br><br><\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>DB_CONNECTION=mysql\nDB_HOST=db\nDB_PORT=3306\nDB_DATABASE=laraveltestdb\nDB_USERNAME=root\nDB_PASSWORD=admin\n\n<\/code><\/pre>\n\n\n\n<ol start=\"2\"><li>\u63a5\u7d9a\u30c6\u30b9\u30c8\u7528\u30eb\u30fc\u30c8\u3092 <code>routes\/web.php<\/code>\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<br><br><\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>use Illuminate\\Support\\Facades\\DB;\n\nRoute::get('\/dbtest', function () {\n    try {\n        $result = DB::select('SELECT 1');\n        return 'DB\u63a5\u7d9a\u6210\u529f\uff01\u7d50\u679c: ' . json_encode($result);\n    } catch (\\Exception $e) {\n        return 'DB\u63a5\u7d9a\u30a8\u30e9\u30fc: ' . $e-&gt;getMessage();\n    }\n});\n\n<\/code><\/pre>\n\n\n\n<ol start=\"3\"><li><code>http:\/\/localhost:8000\/dbtest<\/code> \u306b\u30a2\u30af\u30bb\u30b9\u3092\u304a\u3053\u306a\u3044 \u300cDB\u63a5\u7d9a\u6210\u529f\uff01\u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070 OK \u3067\u3059\u3002<br><\/li><\/ol>\n\n\n\n<p>\u6b21\u56de\u306f\u3001 Docker\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<p>\u6728\u66dc\u65e5\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/14073\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/14073\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Windows 11 + Docker \/ Laravel + Vue.js \u74b0\u5883\u69cb\u7bc9\u30ac\u30a4\u30c9 #5\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/14073\" data-text=\"Windows 11 + Docker \/ Laravel + Vue.js \u74b0\u5883\u69cb\u7bc9\u30ac\u30a4\u30c9 #5\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/14073\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/14073\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u8a18\u4e8b\u306f Windows 11 + Docker \/ Laravel + Vue.js \u74b0\u5883\u69cb\u7bc9\u30ac\u30a4\u30c9 #4 \u306e\u7d9a\u304d\u3067\u3059\u3002 \u958b\u767a\u74b0\u5883\u306e\u8a2d\u5b9a 5-1. Git\u8a2d\u5b9a Windows \u306e Zone.Identifier \u524a\u9664: [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72,90],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/14073"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=14073"}],"version-history":[{"count":18,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/14073\/revisions"}],"predecessor-version":[{"id":14093,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/14073\/revisions\/14093"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=14073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=14073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=14073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}