{"id":130104,"date":"2026-05-20T04:06:36","date_gmt":"2026-05-20T04:06:36","guid":{"rendered":"\/my\/tutorials\/install-nextcloud-with-docker"},"modified":"2026-05-20T04:06:36","modified_gmt":"2026-05-20T04:06:36","slug":"install-nextcloud-with-docker","status":"publish","type":"post","link":"\/my\/tutorials\/install-nextcloud-with-docker","title":{"rendered":"How to install Nextcloud with Docker and use it as a Google Workspace alternative"},"content":{"rendered":"<p>Nextcloud with Docker lets you deploy a private cloud on a VPS for file storage, sharing, document collaboration, calendars, contacts, notes, and video calls. With the right setup, it can serve as a self-hosted Google Workspace alternative for personal use, freelancers, and small teams seeking greater control over their data.<\/p><p>To install Nextcloud with Docker:<\/p><ol class=\"wp-block-list\">\n<li>Prepare a VPS, domain or subdomain, HTTPS access, persistent storage, and admin credentials.<\/li>\n\n\n\n<li>Deploy the Nextcloud Docker template on your VPS.<\/li>\n\n\n\n<li>Complete the browser-based Nextcloud setup.<\/li>\n\n\n\n<li>Configure your domain, users, storage, and backups.<\/li>\n\n\n\n<li>Install apps like Calendar, Contacts, Notes, Talk, and Nextcloud Office based on your workflow.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-what-do-you-need-before-installing-nextcloud-with-docker\">What do you need before installing Nextcloud with Docker?<\/h2><p>Before installing Nextcloud with Docker, <a href=\"\/my\/tutorials\/how-to-set-up-vps\">prepare a VPS<\/a>, a domain name, and a basic storage plan. These prerequisites help you deploy Nextcloud smoothly and keep your files, settings, and user data available after the container is running.<\/p><p>You need:<\/p><ul class=\"wp-block-list\">\n<li><strong>A <a href=\"\/my\/vps\/docker\">VPS with Docker<\/a> support<\/strong> &ndash; Nextcloud runs in containers, so your server must support Docker. For a small personal or team setup, choose a VPS with enough CPU, RAM, and NVMe storage for file sync, document editing, and future uploads.<\/li>\n\n\n\n<li><strong>A domain or subdomain<\/strong> &ndash; Use a domain like cloud.example.com so users can access Nextcloud through a clean URL instead of a server IP address.<\/li>\n\n\n\n<li><strong>SSL\/HTTPS access<\/strong> &ndash; HTTPS protects logins, file transfers, calendar sync, and collaboration data when your Nextcloud instance is available online.<\/li>\n\n\n\n<li><strong>Persistent storage<\/strong> &ndash; Store Nextcloud files, app data, and database data in persistent volumes so they remain available after container restarts or updates.<\/li>\n\n\n\n<li><strong>Admin credentials<\/strong> &ndash; Prepare a strong username and password for the first Nextcloud admin account.<\/li>\n\n\n\n<li><strong>Backup location<\/strong> &ndash; Decide where backups will be stored before uploading important files, especially if you plan to use Nextcloud as a Google Drive or Google Workspace alternative.<\/li>\n<\/ul><p>Once these items are ready, you can deploy the Nextcloud Docker template from Hostinger&rsquo;s catalog and continue with the initial browser-based setup.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-nextcloud-with-docker-on-a-vps\">How to install Nextcloud with Docker on a VPS<\/h2><p>To install Nextcloud with Docker on a VPS, deploy the <a href=\"\/my\/vps\/docker\/nextcloud\">Nextcloud template<\/a> from Hostinger&rsquo;s Docker catalog, open the generated application URL, and complete the browser-based setup. Hostinger&rsquo;s Nextcloud template runs the self-hosted productivity platform on a VPS, so you can start with file storage and later add collaboration features like document editing, calendars, contacts, and video calls.<\/p><ol class=\"wp-block-list\">\n<li><strong>Open the Hostinger Docker catalog. <\/strong>Go to Hostinger&rsquo;s Docker catalog and search for <strong>Nextcloud<\/strong>. The catalog lets you deploy applications from ready-made templates rather than manually preparing each container from scratch.<\/li>\n\n\n\n<li><strong>Select the Nextcloud template. <\/strong>Choose the Nextcloud Docker template. Hostinger describes Nextcloud as a self-hosted productivity platform for files, communication, and collaboration, making it suitable for users who want a private Google Workspace-style setup.<\/li>\n\n\n\n<li><strong>Choose a VPS plan. <\/strong>Pick a VPS plan with enough CPU, RAM, and storage for your files and users. Hostinger recommends the KVM 2 plan for Nextcloud, which includes <strong>2 vCPU cores, 8 GB of RAM, 100 GB of NVMe storage, and 8 TB of bandwidth<\/strong>.<\/li>\n\n\n\n<li><strong>Deploy the application. <\/strong>Click <strong>Deploy<\/strong> and wait for the VPS to install the Nextcloud Docker template. After deployment, Hostinger provides the server and application access details.<\/li>\n\n\n\n<li><strong>Open the Nextcloud setup page. <\/strong>Visit the Nextcloud URL or server address provided after deployment. If you have already pointed a domain or subdomain to the VPS, use that domain for setup.<\/li>\n\n\n\n<li><strong>Create the admin account. <\/strong>Enter a secure admin username and password. This account controls users, apps, sharing settings, and maintenance options, so avoid simple credentials.<\/li>\n\n\n\n<li><strong>Finish the initial configuration. <\/strong>Complete the setup wizard, sign in to the Nextcloud dashboard, and check that the Files app loads correctly. At this point, Nextcloud is ready for basic private cloud storage.<\/li>\n<\/ol><p>After the installation, connect your domain, enable HTTPS, create user accounts, and install the apps needed for your workflow. For a Google Workspace-style setup, start with Files for cloud storage, then add Calendar, Contacts, Notes, Talk, and an office integration such as Collabora or ONLYOFFICE.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-configure-nextcloud-after-installation\">How to configure Nextcloud after installation<\/h2><p>After installing Nextcloud with Docker, configure your domain, HTTPS, users, storage, and background jobs before uploading important files. These settings make the server easier to access, safer to use, and more reliable for long-term private cloud storage.<\/p><p>First, <a href=\"\/my\/tutorials\/how-to-point-domain-to-vps\">connect a domain or subdomain to your VPS<\/a>, such as cloud.example.com. Then, enable HTTPS so Nextcloud can protect logins, file transfers, and sync traffic. Nextcloud&rsquo;s official Docker image notes that HTTPS is required when a server is reachable from the internet.<\/p><p>Next, open the <strong>Administration settings<\/strong> panel and review the system warnings. Nextcloud shows setup issues there, including missing PHP settings, background job problems, security headers, or database-related warnings. Fix the highest-priority warnings first because they affect performance, security, and sync reliability.<\/p><p>Create user accounts and groups after the server checks are clear. For a personal setup, one admin account and one regular user account are enough. For a team setup, create separate accounts for each person and organize them into groups, such as family, design, or marketing, so you can manage folder access and sharing permissions more easily.<\/p><p>Then, review the storage and sharing settings. Set upload limits, decide whether users can create public links, and confirm where uploaded files are stored. Use persistent storage for Nextcloud data so files and app settings remain available after container restarts or updates.<\/p><p>Finally, configure backups and updates. Back up both the Nextcloud files and the database, since files alone are not enough to restore the full server. Once the basic setup is stable, install only the apps your workflow needs, such as Calendar, Contacts, Notes, Talk, or an office integration for collaborative documents.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-can-nextcloud-with-docker-replace-google-workspace\">How can Nextcloud with Docker replace Google Workspace?<\/h2><p>Nextcloud with Docker can replace Google Workspace basics by combining private file storage with collaboration apps for documents, calendars, contacts, notes, chat, and video calls. The Docker installation provides the Nextcloud server, while optional Nextcloud apps expand it into a self-hosted productivity workspace.<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td colspan=\"1\" rowspan=\"1\"><p><strong>Google Workspace app<\/strong><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><strong>Nextcloud replacement<\/strong><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><strong>What it does<\/strong><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Google Drive<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud Files<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Stores, syncs, previews, and shares files from a private cloud<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Google Docs, Sheets, and Slides<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud Office<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Lets users edit documents, spreadsheets, and presentations in the browser<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Google Calendar<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud Calendar<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Manages personal and shared calendars<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Google Contacts<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud Contacts<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Stores address books and syncs contacts across devices<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Google Meet<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud Talk<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Adds chat, calls, screen sharing, and video meetings<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Google Keep<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud Notes<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Stores simple notes and syncs them across devices<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Google Photos<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud Photos<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Organizes and previews images uploaded to the server<\/span><\/p><\/td><\/tr><\/tbody><\/table><\/figure><p>Start with <strong>Nextcloud Files<\/strong> as the core replacement for Google Drive. Users can upload files, organize folders, share links, control permissions, and sync files between desktop, mobile, and browser sessions. This makes file storage the foundation for the rest of the workspace.<\/p><p>Next, add <strong>Nextcloud Office<\/strong> if you need Google Docs-style editing. Nextcloud Office connects Nextcloud with an office backend such as Collabora Online or ONLYOFFICE, so users can open and edit text documents, spreadsheets, and presentations without leaving the browser.<\/p><p>For scheduling and address books, install <strong>Calendar<\/strong> and <strong>Contacts<\/strong>. These apps replace Google Calendar and Google Contacts for everyday use, including shared calendars, personal schedules, and contact sync through supported clients.<\/p><p>To add communication features, use <strong>Nextcloud Talk<\/strong>. It can replace basic Google Meet or Google Chat workflows by supporting messages, calls, screen sharing, and video meetings. For larger meetings, allocate more server resources and review the Talk backend requirements before relying on it for a team.<\/p><p>Nextcloud does not replace every Google Workspace feature by default. Gmail, advanced admin controls, enterprise compliance tools, and large-scale video conferencing require separate services or additional configuration. For most personal users, freelancers, and small teams, however, a Nextcloud setup covers the main private cloud workflow: files, sharing, documents, calendars, contacts, notes, and communication.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-add-document-collaboration-with-nextcloud-office\">How to add document collaboration with Nextcloud Office<\/h2><p>To add document collaboration to Nextcloud, install <strong>Nextcloud Office<\/strong> and connect it to an office backend like <strong>Collabora Online<\/strong>. This lets users open and edit documents, spreadsheets, and presentations in the browser, similar to Google Docs, Sheets, and Slides.<\/p><p>Nextcloud Office is the editing interface inside Nextcloud, while Collabora Online processes the documents on the server. Nextcloud describes Office as a self-hosted online office suite with collaborative editing that supports major document, spreadsheet, and presentation formats.<\/p><p>To set it up:<\/p><ol class=\"wp-block-list\">\n<li><strong>Create a subdomain for the office backend. <\/strong>Use a separate address like office.example.com for Collabora Online. Nextcloud&rsquo;s Docker installation example recommends using a subdomain instead of running the office backend on the same domain as Nextcloud.<\/li>\n\n\n\n<li><strong>Run the Collabora Online container. <\/strong>Deploy the Collabora container on the same VPS or another server. During setup, connect it to your Nextcloud domain so only your Nextcloud instance can use it.<\/li>\n\n\n\n<li><strong>Configure HTTPS and reverse proxy access. <\/strong>Add a valid SSL certificate for both your Nextcloud domain and the office subdomain. The official Docker example lists valid SSL certificates for both services as requirements.<\/li>\n\n\n\n<li><strong>Install the Nextcloud Office app. <\/strong>In Nextcloud, open <strong>Apps &rarr; Office &amp; text<\/strong>, then install <strong>Nextcloud Office<\/strong>.<\/li>\n\n\n\n<li><strong>Connect Nextcloud Office to Collabora. <\/strong>Go to <strong>Administration settings &rarr; Office<\/strong> and enter the Collabora server URL, such as https:\/\/office.example.com. Nextcloud will then use that backend for browser-based document editing.<\/li>\n<\/ol><p>After configuration, test the setup by uploading a .docx, .xlsx, or .pptx file and opening it from the Files app. If the document opens in the browser, Nextcloud Office is ready for real-time editing and file collaboration.<\/p><p>Document collaboration needs more server resources than basic file storage. If several users edit documents at the same time, monitor CPU, RAM, and storage usage from your VPS panel and upgrade the server if editing becomes slow.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-secure-and-back-up-your-nextcloud-setup\">How to secure and back up your Nextcloud setup<\/h2><p><a href=\"\/my\/tutorials\/vps-security\" data-wpel-link=\"internal\" rel=\"follow\">Secure your VPS setup<\/a> by enabling HTTPS, limiting admin access, updating containers, and backing up both files and the database. These steps protect your private cloud from unauthorized access, data loss, and failed updates.<\/p><p>Start with <strong>HTTPS<\/strong>. A public Nextcloud server should use a valid SSL certificate so logins, file transfers, and sync traffic are encrypted. After connecting your domain, verify that users access the server via https:\/\/rather than the raw IP address.<\/p><p>Next, harden user access. Use a strong password for the admin account, create separate accounts for everyday use, and enable <strong>two-factor authentication (2FA)<\/strong> for admins and important users. Avoid using the main admin account for daily file syncing or document editing.<\/p><p>Then, review sharing permissions. Disable public links if you do not need them, or require passwords and expiration dates for shared links. For team setups, use groups to control who can access shared folders instead of giving permissions user by user.<\/p><p>Keep the Docker setup updated. Update the Nextcloud container, database container, and supporting services regularly, but back up the server before applying major changes. Container updates are easier to roll out when your files, database, and configuration are stored in persistent volumes.<\/p><p>Backups should include <strong>three parts<\/strong>:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td colspan=\"1\" rowspan=\"1\"><p><strong>Backup item<\/strong><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><strong>Why it matters<\/strong><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Nextcloud files<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Stores uploaded documents, photos, and synced folders<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Database<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Stores users, file indexes, app settings, shares, and calendars<\/span><\/p><\/td><\/tr><tr><td colspan=\"1\" rowspan=\"1\"><p><span>Configuration<\/span><\/p><\/td><td colspan=\"1\" rowspan=\"1\"><p><span>Stores trusted domains, app settings, and server-specific setup<\/span><\/p><\/td><\/tr><\/tbody><\/table><\/figure><p>Do not back up only the file folder. A complete restore also requires the database and configuration files, as Nextcloud uses them to link files to users, shares, calendars, contacts, and installed apps.<\/p><p>Store backups outside the main Nextcloud container. Use another server, object storage, local encrypted storage, or an external backup volume. For better protection, keep at least one backup copy outside the VPS so a server failure does not remove both the live data and the backup.<\/p><p>Finally, test the restore process before relying on Nextcloud for important work. A backup is useful only if you can restore it. After the first successful backup, schedule recurring backups based on how often the data changes. For a personal setup, daily or weekly backups may be enough. For a small team using Nextcloud as a Google Workspace alternative, daily backups are safer.<\/p><h2 class=\"wp-block-heading\" id=\"h-when-is-nextcloud-with-docker-not-a-full-google-workspace-replacement\">When is Nextcloud with Docker not a full Google Workspace replacement?<\/h2><p>Nextcloud with Docker is not a full Google Workspace replacement if you need managed business email, advanced admin controls, built-in compliance tools, or large-scale video meetings. It covers the core private cloud workflow well, but some Google Workspace services need extra tools or separate hosting.<\/p><p>Nextcloud does not replace Gmail by default. You need separate email hosting for mailboxes, spam filtering, deliverability, and mailbox management.<\/p><p>Google Docs-style editing also needs extra setup. To edit documents, spreadsheets, and presentations in the browser, connect Nextcloud Office with Collabora Online or ONLYOFFICE.<\/p><p>Video calls are another limitation. Nextcloud Talk works for basic chat and meetings, but larger calls require more CPU, RAM, and bandwidth, as well as backend configuration.<\/p><p>You also manage the server yourself. That includes updates, backups, uptime, storage, SSL, user access, and security. Google Workspace handles most of those tasks as a managed service.<\/p><p>For personal users, freelancers, and small teams, Nextcloud can replace files, sharing, calendars, contacts, notes, and basic collaboration. For businesses that rely on Gmail, compliance features, endpoint management, or large meetings, use Nextcloud alongside dedicated email, identity, and backup services, rather than treating it as a complete one-to-one replacement.<\/p><h2 class=\"wp-block-heading\" id=\"h-next-steps-after-installing-nextcloud-with-docker\">Next steps after installing Nextcloud with Docker<\/h2><p>After installing Nextcloud with Docker, finish the setup by connecting your domain, enabling HTTPS, creating user accounts, and installing only the apps your workflow needs. These steps turn the default Nextcloud instance into a usable private cloud.<\/p><p>Start with the basics: confirm that your domain points to the VPS, check that HTTPS works, and review any warnings in the Nextcloud admin dashboard. Fix security or configuration warnings before uploading important files.<\/p><p>Next, create regular user accounts. Keep the admin account for maintenance tasks, and use separate accounts for daily file syncing, sharing, and collaboration. For teams, create groups to manage folder access more easily.<\/p><p>Then, install the apps that match your Google Workspace replacement needs. Use Files for cloud storage, Calendar for scheduling, Contacts for address books, Notes for simple notes, Talk for chat or calls, and Nextcloud Office for browser-based document editing.<\/p><p>Finally, set up backups before relying on Nextcloud for important work. Back up the files, database, and configuration, then test the restore process once. Once backups work, connect the desktop and mobile sync clients so users can start uploading files, syncing calendars, and using Nextcloud as their private workspace.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nextcloud with Docker lets you deploy a private cloud on a VPS for file storage, sharing, document collaboration, calendars, contacts, notes, and video calls. With the right setup, it can serve as a self-hosted Google Workspace alternative for personal use, freelancers, and small teams seeking greater control over their data. To install Nextcloud with Docker: [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/my\/tutorials\/install-nextcloud-with-docker\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":342,"featured_media":130105,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to install Nextcloud with Docker on a VPS","rank_math_description":"Install Nextcloud with Docker on a VPS, configure users and backups, and add apps for files, calendars, contacts, notes, and document editing.","rank_math_focus_keyword":"install nextcloud docker","footnotes":""},"categories":[22639],"tags":[],"class_list":["post-130104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/install-nextcloud-with-docker","default":1},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/install-nextcloud-with-docker","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/install-nextcloud-with-docker","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/install-nextcloud-with-docker","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/install-nextcloud-with-docker","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/install-nextcloud-with-docker","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/install-nextcloud-with-docker","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/install-nextcloud-with-docker","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/130104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/users\/342"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/comments?post=130104"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/130104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media\/130105"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media?parent=130104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/categories?post=130104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/tags?post=130104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}