{"id":169,"date":"2023-03-27T14:58:04","date_gmt":"2023-03-27T06:58:04","guid":{"rendered":"https:\/\/yajtech.synology.me\/wordpress\/?p=169"},"modified":"2023-03-28T10:12:31","modified_gmt":"2023-03-28T02:12:31","slug":"synology-nas-%e5%bb%ba%e7%bd%ae-gitlab","status":"publish","type":"post","link":"https:\/\/www.yaj.com.tw\/wordpress\/?p=169","title":{"rendered":"Synology NAS \u5efa\u7f6e GitLab"},"content":{"rendered":"\n<p>\u4e0b\u8f09Docker\uff0c\u9078\u64c7\u7684\u7248\u672c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"534\" height=\"77\" src=\"https:\/\/yajtech.synology.me\/wordpress\/wp-content\/uploads\/2023\/03\/image-9.png\" alt=\"\" class=\"wp-image-191\" srcset=\"https:\/\/www.yaj.com.tw\/wordpress\/wp-content\/uploads\/2023\/03\/image-9.png 534w, https:\/\/www.yaj.com.tw\/wordpress\/wp-content\/uploads\/2023\/03\/image-9-300x43.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/figure>\n\n\n\n<p>\u5148\u8a2d\u5b9a\u5916\u90e8\u7a7a\u9593<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"214\" height=\"218\" src=\"https:\/\/yajtech.synology.me\/wordpress\/wp-content\/uploads\/2023\/03\/image-1.png\" alt=\"\" class=\"wp-image-171\"\/><\/figure>\n\n\n\n<p>\u8a2d\u5b9a\u5132\u5b58\u7a7a\u9593\u70ba\u5916\u90e8<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"183\" src=\"https:\/\/yajtech.synology.me\/wordpress\/wp-content\/uploads\/2023\/03\/image-11.png\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/www.yaj.com.tw\/wordpress\/wp-content\/uploads\/2023\/03\/image-11.png 491w, https:\/\/www.yaj.com.tw\/wordpress\/wp-content\/uploads\/2023\/03\/image-11-300x112.png 300w\" sizes=\"auto, (max-width: 491px) 100vw, 491px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"171\" src=\"https:\/\/yajtech.synology.me\/wordpress\/wp-content\/uploads\/2023\/03\/image-10.png\" alt=\"\" class=\"wp-image-193\" srcset=\"https:\/\/www.yaj.com.tw\/wordpress\/wp-content\/uploads\/2023\/03\/image-10.png 400w, https:\/\/www.yaj.com.tw\/wordpress\/wp-content\/uploads\/2023\/03\/image-10-300x128.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<p>\u9019\u88e1\u8981\u6ce8\u610f\u5230\u5bb9\u5668\u7684\u9023\u63a5\u57e0\u548c\u5916\u90e8\u7684\u9023\u63a5\u57e0\uff0c\u7b49\u6703\u8981\u53e6\u5916\u8a2d\u5b9a\u5916\u90e8\u9023\u7dda<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"143\" height=\"191\" src=\"https:\/\/yajtech.synology.me\/wordpress\/wp-content\/uploads\/2023\/03\/image-12.png\" alt=\"\" class=\"wp-image-195\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td>\u74b0\u5883\u8b8a\u6578<\/td><td>\u503c<\/td><td>\u8aaa\u660e<\/td><\/tr><tr><td>GITLAB_HOST<\/td><td>http:\/\/nas_ip_or_domain:9080<\/td><td>\u9700\u548c\u4e0a\u9762\u7684\u9023\u63a5\u57e0\u8a2d\u5b9a\u53ca\u5f8c\u9762\u7684\u6587\u4ef6\u4fee\u6539\u8a2d\u5b9a\u76f8\u540c<\/td><\/tr><tr><td>GITLAB_ROOT_PASSWORD<\/td><td>root \u9810\u8a2d\u5bc6\u78bc<\/td><td>\u7b2c\u4e00\u6b21\u555f\u7528\u6642\u4f7f\u7528\uff0c\u4e4b\u5f8c\u7121\u6548\uff0c\u82e5\u4e00\u958b\u59cb\u6c92\u6709\u8a2d\u5b9a\uff0c\u4f7f\u7528\u4e0b\u5217\u65b9\u5f0f\u67e5\u8a62<br><code>sudo docker exec -it gitlab grep 'Password:' \/etc\/gitlab\/initial_root_password<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4fee\u6539 config\/gitlab.rb \u6a94\u6848\u4e2dexternal_url \u53c3\u6578\u8207  GITLAB_HOST \u8a2d\u5b9a\u503c\u76f8\u540c<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u8a2d\u5b9a\u5b8c\u6210\u3002\u7b2c\u4e00\u6b21\u555f\u52d5\uff0c<span class=\"has-inline-color has-bright-red-color\">\u5927\u7d04\u904e10\u5206\u9418\u5f8c<\/span>\uff0c\u5c31\u53ef\u4ee5\u900f\u904eNAS\u7684IP:9080\uff0c\u767b\u5165gitlab \u7684\u7ba1\u7406\u4ecb\u9762\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8f09Docker\uff0c\u9078\u64c7\u7684\u7248\u672c\u5982\u4e0b\uff1a \u5148\u8a2d\u5b9a\u5916\u90e8\u7a7a\u9593 \u8a2d\u5b9a\u5132\u5b58\u7a7a\u9593\u70ba\u5916\u90e8 \u9019\u88e1\u8981\u6ce8\u610f\u5230\u5bb9\u5668\u7684\u9023\u63a5\u57e0\u548c\u5916\u90e8\u7684\u9023\u63a5\u57e0 &#8230; <a title=\"Synology NAS \u5efa\u7f6e GitLab\" class=\"read-more\" href=\"https:\/\/www.yaj.com.tw\/wordpress\/?p=169\" aria-label=\"\u95b1\u8b80\u3008Synology NAS \u5efa\u7f6e GitLab\u3009\u5168\u6587\">\u95b1\u8b80\u5168\u6587<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[18,19],"class_list":["post-169","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-gitlab","tag-synology"],"_links":{"self":[{"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":5,"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yaj.com.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}