{"id":887,"date":"2023-09-21T17:33:51","date_gmt":"2023-09-21T09:33:51","guid":{"rendered":"https:\/\/lox.im\/?p=887"},"modified":"2023-09-22T22:29:54","modified_gmt":"2023-09-22T14:29:54","slug":"%e7%be%a4%e6%99%96%e5%ae%89%e8%a3%85nextcloud-aio%e5%a1%ab%e5%9d%91","status":"publish","type":"post","link":"https:\/\/lox.im\/index.php\/887.html","title":{"rendered":"\u7fa4\u6656\u5b89\u88c5Nextcloud-AIO\u586b\u5751"},"content":{"rendered":"\n<p>\u53c2\u8003<a rel=\"noreferrer noopener\" href=\"https:\/\/blog.csdn.net\/wbsu2004\/article\/details\/132800311\" target=\"_blank\" rel=\"nofollow\" >\u6768\u6d66\u8001\u82cf<\/a>\u7684\u6587\u7ae0\uff0c\u4e0d\u8fc7\u6709\u4e2a\u5751\u8981\u586b\uff0c\u5c31\u662fcompose.yaml\u91cc\u9762\u4e0d\u80fd\u81ea\u52a8\u521b\u5efa\u6240\u6709\u7684volume\u7ed1\u5b9a\uff0c\u6545\uff0c\u9700\u8981\u5148\u624b\u52a8\u7ed1\u5b9avolumes\uff0c\u518ddockercompose up -d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker volume create \\\n   --driver local \\\n   --name nextcloud_aio_nextcloud_datadir \\\n   -o device=\"\/volume4\/Adult\/nextcloud\/data\" \\\n   -o type=\"none\" \\\n   -o o=\"bind\"\n\ndocker volume create \\\n   --driver local \\\n   --name nextcloud_aio_redis \\\n   -o device=\"\/volume3\/\u8fc5\u96f7\/docker\/nextcloud\/redis\" \\\n   -o type=\"none\" \\\n   -o o=\"bind\"\n\ndocker volume create \\\n   --driver local \\\n   --name nextcloud_aio_database_dump \\\n   -o device=\"\/volume3\/\u8fc5\u96f7\/docker\/nextcloud\/database_dump\" \\\n   -o type=\"none\" \\\n   -o o=\"bind\"\n\ndocker volume create \\\n   --driver local \\\n   --name nextcloud_aio_database \\\n   -o device=\"\/volume3\/\u8fc5\u96f7\/docker\/nextcloud\/database\" \\\n   -o type=\"none\" \\\n   -o o=\"bind\"\n\ndocker volume create \\\n   --driver local \\\n   --name nextcloud_aio_apache \\\n   -o device=\"\/volume3\/\u8fc5\u96f7\/docker\/nextcloud\/apache\" \\\n   -o type=\"none\" \\\n   -o o=\"bind\"\n\ndocker volume create \\\n   --driver local \\\n   --name nextcloud_aio_nextcloud \\\n   -o device=\"\/volume3\/\u8fc5\u96f7\/docker\/nextcloud\/config\" \\\n   -o type=\"none\" \\\n   -o o=\"bind\"<\/code><\/pre>\n\n\n\n<p>\u6211\u9700\u8981\u6240\u6709\u7684\u5360\u786c\u76d8ops\u7684\u653e\u5728\u56fa\u6001\u4e2d\uff0c\u7136\u540edata\u653e\u5165\u5269\u4f59\u7a7a\u95f4\u66f4\u5927\u7684\u673a\u68b0\u786c\u76d8\u3002<\/p>\n\n\n\n<p>\u7ed1\u5b9a\u6240\u6709\u786c\u76d8\u540e\u5c31\u53ef\u4ee5dockercompose up -d \u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>version: '3'\n\nvolumes:\n  nextcloud_aio_mastercontainer:\n    name: nextcloud_aio_mastercontainer\n    driver: local\n    driver_opts:\n      type: 'none'\n      o: 'bind'\n      device: '\/volume3\/\u8fc5\u96f7\/docker\/nextcloud\/aio\n\nservices:\n  nextcloud-aio-mastercontainer:\n    image: nextcloud\/all-in-one:latest\n    init: true\n    restart: always\n    container_name: nextcloud-aio-mastercontainer\n    volumes:\n      - nextcloud_aio_mastercontainer:\/mnt\/docker-aio-config\n      - \/var\/run\/docker.sock:\/var\/run\/docker.sock:ro \n    ports:\n    #  - 80:80 \n      - 8381:8080\n    #  - 8443:8443\n    environment:\n      # - AIO_DISABLE_BACKUP_SECTION=false \n      - APACHE_PORT=11000 \n      - APACHE_IP_BINDING=127.0.0.1 \n      # - BORG_RETENTION_POLICY=--keep-within=7d --keep-weekly=4 --keep-monthly=6 \n      # - COLLABORA_SECCOMP_DISABLED=false \n      - NEXTCLOUD_DATADIR=nextcloud_aio_nextcloud_datadir \n      # - NEXTCLOUD_MOUNT=\/mnt\/ \n      # - NEXTCLOUD_UPLOAD_LIMIT=10G\n      # - NEXTCLOUD_MAX_TIME=3600\n      # - NEXTCLOUD_MEMORY_LIMIT=512M\n      # - NEXTCLOUD_TRUSTED_CACERTS_DIR=\/path\/to\/my\/cacerts\n      # - NEXTCLOUD_STARTUP_APPS=deck twofactor_totp tasks calendar contacts notes \n      # - NEXTCLOUD_ADDITIONAL_APKS=imagemagick\n      # - NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS=imagick\n      # - NEXTCLOUD_ENABLE_DRI_DEVICE=true\n      # - NEXTCLOUD_KEEP_DISABLED_APPS=false\n      # - TALK_PORT=3478\n      # - WATCHTOWER_DOCKER_SOCKET_PATH=\/var\/run\/docker.sock\n    # networks:\n      # - nextcloud-aio\n\n#volumes:\n#  nextcloud_aio_mastercontainer:\n#    name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work\n      \n# # Optional: If you need ipv6, follow step 1 and 2 of https:\/\/github.com\/nextcloud\/all-in-one\/blob\/main\/docker-ipv6-support.md first and then uncomment the below config in order to activate ipv6 for the internal nextcloud-aio network.\n# # Please make sure to uncomment also the networking lines of the mastercontainer above in order to actually create the network with docker-compose\n# networks:\n#   nextcloud-aio:\n#     name: nextcloud-aio # This line is not allowed to be changed as otherwise the created network will not be used by the other containers of AIO\n#     driver: bridge\n#     enable_ipv6: true\n#     ipam:\n#       driver: default\n#       config:\n#         - subnet: fd12:3456:789a:2::\/64 # IPv6 subnet to use<\/code><\/pre>\n\n\n\n<p class=\"has-text-align-left\"><strong>\u586b\u5751\u4e8c\uff1a<\/strong><\/p>\n\n\n\n<p>\u5b89\u88c5\u540eCollabora\u8d77\u4e0d\u4e86\u662f\u4ee5\u4e3a\u7fa4\u6656\u5185\u6838\u4e0d\u652f\u6301Collabora \u7684 Seccomp \u529f\u80fd\uff0c\u6240\u4ee5\u9700\u8981\u5173\u95ed\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"user-content-how-to-disable-collaboras-seccomp-feature\">\u5982\u4f55\u7981\u7528 Collabora \u7684 Seccomp \u529f\u80fd\uff1f<\/h3>\n\n\n\n<p>Collabora \u5bb9\u5668\u9ed8\u8ba4\u542f\u7528 Seccomp\uff0c\u8fd9\u662f Linux \u5185\u6838\u7684\u4e00\u9879\u5b89\u5168\u529f\u80fd\u3002\u5728\u672a\u542f\u7528\u6b64\u5185\u6838\u529f\u80fd\u7684\u7cfb\u7edf\u4e0a\uff0c\u60a8\u9700\u8981\u63d0\u4f9b<code>--env COLLABORA_SECCOMP_DISABLED=true<\/code>\u521d\u59cb docker run \u547d\u4ee4\u624d\u80fd\u4f7f\u5176\u5de5\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\u6768\u6d66\u8001\u82cf\u7684\u6587\u7ae0\uff0c\u4e0d\u8fc7\u6709\u4e2a\u5751\u8981\u586b\uff0c\u5c31\u662fcompose.yaml\u91cc\u9762\u4e0d\u80fd\u81ea\u52a8\u521b\u5efa\u6240\u6709\u7684volume\u7ed1\u5b9a\uff0c\u6545\uff0c\u9700\u8981\u5148\u624b\u52a8\u7ed1\u5b9avolu &#8230;<\/p>\n","protected":false},"author":1,"featured_media":888,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[4],"tags":[6,12],"class_list":["post-887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet","tag-nextcloud","tag-12"],"_links":{"self":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/comments?post=887"}],"version-history":[{"count":4,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"predecessor-version":[{"id":892,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/posts\/887\/revisions\/892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media\/888"}],"wp:attachment":[{"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lox.im\/index.php\/wp-json\/wp\/v2\/tags?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}