{"id":378,"date":"2019-01-14T19:49:05","date_gmt":"2019-01-14T11:49:05","guid":{"rendered":"https:\/\/www.sumju.net\/?p=378"},"modified":"2019-01-23T21:02:21","modified_gmt":"2019-01-23T13:02:21","slug":"%e5%ae%98%e6%96%b9owncloud-docker%e9%95%9c%e5%83%8f%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/sumju.net\/?p=378","title":{"rendered":"\u5b98\u65b9Owncloud Docker\u955c\u50cf\u5b89\u88c5"},"content":{"rendered":"<pre style=\"box-sizing:border-box; font-family:Monaco,Menlo,Consolas,\" couriernewmonospace=\"couriernewmonospace\" _13px=\"font-size:_13px\" pre-wrap=\"white-space:pre-wrap\" block=\"display:block\" _9.5px=\"padding:_9.5px\" _0px0px10px=\"margin:_0px0px10px\" _1.42857=\"line-height:_1.42857\" break-all=\"word-break:break-all\" break-word=\"overflow-wrap:break-word\" rgb515151=\"color:rgb515151\" rgb245245245=\"background-color:rgb245245245\" _1pxsolidrgb204204204=\"border:_1pxsolidrgb204204204\" _4px=\"border-radius:_4px\" normal=\"letter-spacing:normal\" _400=\"font-weight:_400\" _2text-indent0px=\"orphans:_2text-indent0px\" none=\"text-transform:none\" _2=\"widows:_2\" _0px=\"_-webkit-text-stroke-width:_0px\" initial=\"text-decoration-color:initial\" left=\"text-align:left\"><span class=\"gp\" style=\"box-sizing:border-box; color:rgb(198,93,9); font-weight:bold;\">#<\/span> Create a new project directory\n\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">mkdir owncloud-docker-server<\/span>\n\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">cd owncloud-docker-server<\/span>\n\n<span class=\"gp\" style=\"box-sizing:border-box; color:rgb(198,93,9); font-weight:bold;\">#<\/span> Copy docker-compose.yml from the GitHub repository\n\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">wget https:\/\/raw.githubusercontent.com\/owncloud-docker\/server\/master\/docker-compose.yml<\/span>\n\n<span class=\"gp\" style=\"box-sizing:border-box; color:rgb(198,93,9); font-weight:bold;\">#<\/span> Create the environment configuration file\n\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">cat &lt;&lt; EOF &gt; .env<\/span>\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">OWNCLOUD_VERSION=10.0<\/span>\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">OWNCLOUD_DOMAIN=localhost<\/span>\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">ADMIN_USERNAME=admin<\/span>\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">ADMIN_PASSWORD=admin<\/span>\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">HTTP_PORT=8080<\/span>\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">EOF<\/span>\n\n<span class=\"gp\" style=\"box-sizing:border-box; color:rgb(198,93,9); font-weight:bold;\">#<\/span> Build and start the container\n\n<span class=\"go\" style=\"box-sizing:border-box; color:rgb(51,51,51);\">docker-compose up -d<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p># Create a new project directory mkdir owncloud-do&hellip; <a href=\"https:\/\/sumju.net\/?p=378\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">\u5b98\u65b9Owncloud Docker\u955c\u50cf\u5b89\u88c5<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[14],"tags":[],"class_list":{"0":"post-378","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-linux","7":"h-entry","9":"h-as-article"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=378"}],"version-history":[{"count":2,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/378\/revisions\/380"}],"wp:attachment":[{"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}