{"id":5235,"date":"2023-05-22T10:00:00","date_gmt":"2023-05-22T10:00:00","guid":{"rendered":"https:\/\/netguide.io\/linux\/nextcloud-install-on-unraid\/"},"modified":"2023-05-22T10:00:00","modified_gmt":"2023-05-22T10:00:00","slug":"nextcloud-install-on-unraid","status":"publish","type":"post","link":"https:\/\/netguide.io\/linux\/en\/nextcloud-install-on-unraid\/","title":{"rendered":"Nextcloud install on Unraid"},"content":{"rendered":"<script type=\"text\/plain\" data-tcf=\"waiting-for-consent\" data-id=\"4797\" data-bid=\"2\" data-placement=\"4798\">PGRpdiBpZD0ibmV0Z3VpZGVhLTEyMTE1OTc1MzgiIGNsYXNzPSJuZXRndWlkZWEtYmVmb3JlLWNvbnRlbnQgbmV0Z3VpZGVhLWVudGl0eS1wbGFjZW1lbnQiPjxkaXYgY2xhc3M9Im5ldGd1aWRlYS1hZGxhYmVsIj5BZHZlcnRpc2VtZW50czwvZGl2PjxzY3JpcHQgYXN5bmMgc3JjPSIvL3BhZ2VhZDIuZ29vZ2xlc3luZGljYXRpb24uY29tL3BhZ2VhZC9qcy9hZHNieWdvb2dsZS5qcz9jbGllbnQ9Y2EtcHViLTYyNTg1NTYyNTcyNDU5OTgiIGNyb3Nzb3JpZ2luPSJhbm9ueW1vdXMiPjwvc2NyaXB0PjxpbnMgY2xhc3M9ImFkc2J5Z29vZ2xlIiBzdHlsZT0iZGlzcGxheTpibG9jazsiIGRhdGEtYWQtY2xpZW50PSJjYS1wdWItNjI1ODU1NjI1NzI0NTk5OCIgCmRhdGEtYWQtc2xvdD0iMzQ5NDExNTM0MiIgCmRhdGEtYWQtZm9ybWF0PSJhdXRvIj48L2lucz4KPHNjcmlwdD4gCihhZHNieWdvb2dsZSA9IHdpbmRvdy5hZHNieWdvb2dsZSB8fCBbXSkucHVzaCh7fSk7IAo8L3NjcmlwdD4KPC9kaXY+<\/script><p class=\"wp-block-paragraph\">Nextcloud is free software for storing data on your own server. When using a client, the server is automatically synchronized with a local directory. This allows access to a consistent database from multiple computers as well as via a web interface. It is a self-hosted alternative to Google Drive.<\/p>\n\n<p class=\"wp-block-paragraph\">In order to install Nextcloud as a Docker container, the Community Applications plugin is required. You can find out how to install it beforehand if you have not set it up yet.<\/p>\n\n<h2 class=\"wp-block-heading\">Install the MariaDB database<\/h2>\n\n<p class=\"wp-block-paragraph\">Nextcloud requires a database. For this, it is best to use the MariaDB Docker from &#8220;Linuxserver&#8221;. Click on the Install button and the following window appears:<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"436\" src=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/mariadb-installieren-1-1024x436-1.png\" alt=\"Installing the MariaDB Docker container on Unraid\" class=\"wp-image-5229\" srcset=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/mariadb-installieren-1-1024x436-1.png 1024w, \/wp-content\/uploads\/2023\/05\/mariadb-installieren-1-300x128.png 300w, \/wp-content\/uploads\/2023\/05\/mariadb-installieren-1-768x327.png 768w, \/wp-content\/uploads\/2023\/05\/mariadb-installieren-1-1536x654.png 1536w, \/wp-content\/uploads\/2023\/05\/mariadb-installieren-1.png 1883w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n\n<p class=\"wp-block-paragraph\">The port as well as the PUID and PGID can be left at the default. However, you should always store a root password. Keep it safe, because it is always needed when you want to install a Docker container that requires a MariaDB database. Once the MariaDB Docker is installed, you can continue with Nextcloud.<\/p>\n\n<h2 class=\"wp-block-heading\">Install Nextcloud on Unraid<\/h2>\n\n<p class=\"wp-block-paragraph\">Nextcloud also uses the Docker from &#8220;Linuxserver&#8221;. Under the settings, the path to the directory where Nextcloud should store the data can be entered as &#8220;Host Path 2&#8221;. Again, you can leave the other settings as they are. If you had to change them, you would know it.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"438\" src=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/Nextcloud-install-1-1024x438-1.png\" alt=\"Installing the Nextcloud Docker container on Unraid\" class=\"wp-image-5230\" srcset=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/Nextcloud-install-1-1024x438-1.png 1024w, \/wp-content\/uploads\/2023\/05\/Nextcloud-install-1-300x128.png 300w, \/wp-content\/uploads\/2023\/05\/Nextcloud-install-1-768x328.png 768w, \/wp-content\/uploads\/2023\/05\/Nextcloud-install-1-1536x657.png 1536w, \/wp-content\/uploads\/2023\/05\/Nextcloud-install-1.png 1883w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n\n<p class=\"wp-block-paragraph\">Once the installation is complete, you can open the web interface by entering your server IP followed by port 443 in the browser. Example: https:\/\/192.168.178.57:443<\/p>\n\n<p class=\"wp-block-paragraph\">There you should see the following page:<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"499\" src=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/Nextcloud-installer-de-1-1024x499-1.jpg\" alt=\"The Nextcloud web installer\" class=\"wp-image-5231\" srcset=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/Nextcloud-installer-de-1-1024x499-1.jpg 1024w, \/wp-content\/uploads\/2023\/05\/Nextcloud-installer-de-1-300x146.jpg 300w, \/wp-content\/uploads\/2023\/05\/Nextcloud-installer-de-1-768x374.jpg 768w, \/wp-content\/uploads\/2023\/05\/Nextcloud-installer-de-1-1536x748.jpg 1536w, \/wp-content\/uploads\/2023\/05\/Nextcloud-installer-de-1.jpg 1898w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n\n<p class=\"wp-block-paragraph\">Under &#8220;Create administrator account&#8221;, who would have thought it, the administrator account is created. The data directory can be left at the default value; where the data is stored was already defined during the Docker installation.<\/p>\n\n<p class=\"wp-block-paragraph\">Under Database, enter root as the user and the password you just set. The database name can be chosen freely. It is best to simply use &#8220;nextcloud&#8221;. Under host, you must specify the MariaDB Docker, so localhost or the IP of your server followed by port 3306.<\/p>\n\n<p class=\"wp-block-paragraph\">Example: localhost:3306<\/p>\n\n<p class=\"wp-block-paragraph\">With a click on Finish installation, Nextcloud is already installed. Now you can also access Nextcloud locally. But a cloud service that only works locally is not really practical. Therefore, here are the instructions on how to make your local Nextcloud installation available worldwide.<\/p>\n\n<p class=\"wp-block-paragraph\">For this, the Nginx Proxy Manager is required. If you have not installed it yet, set it up first so you can forward requests to the Nextcloud Docker.<\/p>\n\n<p class=\"wp-block-paragraph\">If you do not have a static IP on your Internet connection but a dynamic IP, as is usual for normal Internet connections, you also need a dynamic DNS service such as DuckDNS. Of course, you can also use your own domain with a dynamic IP address.<\/p>\n\n<p class=\"wp-block-paragraph\">Once the preparations shown in the two linked tutorials are complete, you still need to set up port sharing for Nextcloud.<\/p>\n\n<h2 class=\"wp-block-heading\">Create port shares for Nextcloud<\/h2>\n\n<p class=\"wp-block-paragraph\">In order to make the Nextcloud installation accessible from outside your network, a port share must be created as with the Nginx Proxy Manager. Two TCP ports can be shared. Although you can omit port 80, encrypted connections only use port 443. How to set up port shares depends on your specific router.<\/p>\n\n<p class=\"wp-block-paragraph\">With the Nginx Proxy Manager, you forward the requests to the Nextcloud Docker. There you can also create a Let&#8217;s Encrypt SSL certificate to encrypt the connection.<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"561\" src=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/nginx-proxy-host-erstellen-1-1.png\" alt=\"Creating a new proxy host in the Nginx Proxy Manager\" class=\"wp-image-5232\" style=\"width:512px;height:561px\" srcset=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/nginx-proxy-host-erstellen-1-1.png 512w, \/wp-content\/uploads\/2023\/05\/nginx-proxy-host-erstellen-1-274x300.png 274w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\"\/><\/figure>\n\n<p class=\"wp-block-paragraph\">In the web interface of the Nginx Proxy Manager, you create a new proxy host. There you enter the domain or the DuckDNS domain. Then the IP and the port of the server, as shown in the picture above. Under &#8220;Scheme&#8221; you have to enter &#8220;https&#8221;.<\/p>\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"516\" height=\"415\" src=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/nginx-proxy-host-ssl-1-1.png\" alt=\"Requesting an SSL certificate in the Nginx Proxy Manager\" class=\"wp-image-5233\" style=\"width:517px;height:416px\" srcset=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/nginx-proxy-host-ssl-1-1.png 516w, \/wp-content\/uploads\/2023\/05\/nginx-proxy-host-ssl-1-300x241.png 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\"\/><\/figure>\n\n<p class=\"wp-block-paragraph\">Under the tab &#8220;SSL&#8221; you can request an SSL certificate to encrypt the connection.<\/p>\n\n<h3 class=\"wp-block-heading\">Make Nextcloud available with the Nginx Proxy Manager<\/h3>\n\n<p class=\"wp-block-paragraph\">Nextcloud has a special security feature. That is why you will see the following error page when you try to access Nextcloud now:<\/p>\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"437\" src=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/nextcloud-zugriff-fehler-1.webp\" alt=\"Nextcloud trusted domain error page\" class=\"wp-image-5234\" srcset=\"https:\/\/netguide.io\/linux\/wp-content\/uploads\/sites\/2\/2026\/08\/nextcloud-zugriff-fehler-1.webp 1024w, \/wp-content\/uploads\/2023\/05\/nextcloud-zugriff-fehler-1-300x128.webp 300w, \/wp-content\/uploads\/2023\/05\/nextcloud-zugriff-fehler-1-768x328.webp 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"\/><\/figure>\n\n<p class=\"wp-block-paragraph\">To fix this you have to edit the Nextcloud config. To do this you need to connect to your Unraid server with an FTP client. Now open the config under this path: appdata\/nextcloud\/www\/nextcloud\/config\/config.php and open it with a text editor of your choice. It should look something like this:<\/p>\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\"><pre class=\"shiki\" tabindex=\"0\" data-language=\"php\"><code>.\n.\n.\n   'trusted_domains' =&gt;\n   array (\n     0 =&gt; '192.168.178.39:443',\n   ),\n   'dbtype' =&gt; 'mysql',\n   'version' =&gt; '20.0.6.1',\n   'overwrite.cli.url' =&gt; 'http:\/\/192.168.178.39:443',\n   'dbname' =&gt; 'nextcloud',\n.\n.\n.<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">The irrelevant lines above and below the entry have been omitted. Now you have to add three lines so the block looks like this:<\/p>\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\"><pre class=\"shiki\" tabindex=\"0\" data-language=\"php\"><code>.\n.\n.\n   'trusted_domains' =&gt;\n   array (\n     0 =&gt; '192.168.178.39:443',\n     1 =&gt; 'Subdomain.duckdns.org',\n   ),\n   'dbtype' =&gt; 'mysql',\n   'version' =&gt; '20.0.6.1',\n   'overwrite.cli.url' =&gt; 'http:\/\/192.168.178.39:443',\n   'overwritehost' =&gt; 'Subdomain.duckdns.org',\n   'overwriteprotocol' =&gt; 'https',\n   'dbname' =&gt; 'nextcloud',\n.\n.\n.<\/code><\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">The domain \/ subdomain must be specified twice and the &#8220;https&#8221; scheme once. Save the config, then you can already access your Nextcloud from outside.<\/p><script type=\"text\/plain\" data-tcf=\"waiting-for-consent\" data-id=\"4799\" data-bid=\"2\" data-placement=\"4800\">PGRpdiBpZD0ibmV0Z3VpZGVhLTMzMTE4MTE0MTQiIGNsYXNzPSJuZXRndWlkZWEtYWZ0ZXItY29udGVudCBuZXRndWlkZWEtZW50aXR5LXBsYWNlbWVudCI+PGRpdiBjbGFzcz0ibmV0Z3VpZGVhLWFkbGFiZWwiPkFkdmVydGlzZW1lbnRzPC9kaXY+PHNjcmlwdCBhc3luYyBzcmM9Ii8vcGFnZWFkMi5nb29nbGVzeW5kaWNhdGlvbi5jb20vcGFnZWFkL2pzL2Fkc2J5Z29vZ2xlLmpzP2NsaWVudD1jYS1wdWItNjI1ODU1NjI1NzI0NTk5OCIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+PC9zY3JpcHQ+PGlucyBjbGFzcz0iYWRzYnlnb29nbGUiIHN0eWxlPSJkaXNwbGF5OmJsb2NrOyIgZGF0YS1hZC1jbGllbnQ9ImNhLXB1Yi02MjU4NTU2MjU3MjQ1OTk4IiAKZGF0YS1hZC1zbG90PSI0NTU5Nzg1MDAyIiAKZGF0YS1hZC1mb3JtYXQ9ImF1dG8iPjwvaW5zPgo8c2NyaXB0PiAKKGFkc2J5Z29vZ2xlID0gd2luZG93LmFkc2J5Z29vZ2xlIHx8IFtdKS5wdXNoKHt9KTsgCjwvc2NyaXB0Pgo8L2Rpdj4=<\/script>","protected":false},"excerpt":{"rendered":"<p>Learn how to install Nextcloud as a Docker container on Unraid with a MariaDB database and make it reachable from anywhere through the Nginx Proxy Manager.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_affilinode_tracking":"","_affilinode_autolink_off":false,"_affilinode_rating":"","_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[],"class_list":["post-5235","post","type-post","status-publish","format-standard","hentry","category-uncategorized-en"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Tobias","author_link":"https:\/\/netguide.io\/linux\/author\/tobias-pries\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn how to install Nextcloud as a Docker container on Unraid with a MariaDB database and make it reachable from anywhere through the Nginx Proxy Manager.","brizy_media":[],"_links":{"self":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/5235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/comments?post=5235"}],"version-history":[{"count":0,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/posts\/5235\/revisions"}],"wp:attachment":[{"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/media?parent=5235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/categories?post=5235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netguide.io\/linux\/wp-json\/wp\/v2\/tags?post=5235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}