{
  "manifest_version": "1",
  "slug": "nextcloud",
  "title": "Nextcloud",
  "headline": "Self-host Nextcloud",
  "description": "Run Nextcloud on an exe.dev VM with PostgreSQL and Redis: file sync, calendars and contacts, HTTPS with no setup, background jobs and nightly backups.",
  "category": "productivity",
  "tags": [
    "nextcloud",
    "file sync",
    "dropbox alternative",
    "google drive alternative",
    "webdav",
    "caldav",
    "carddav",
    "docker compose",
    "postgresql",
    "redis"
  ],
  "url": "https://exe.dev/deploy/nextcloud",
  "markdown_url": "https://exe-staging.dev/deploy/nextcloud.md",
  "upstream": {
    "website": "https://nextcloud.com",
    "source": "https://github.com/nextcloud/server",
    "docs": "https://docs.nextcloud.com/server/latest/admin_manual/",
    "license": "AGPL-3.0"
  },
  "example_vm_name": "my-nextcloud",
  "time": "15 minutes",
  "stack": [
    {
      "name": "Nextcloud 35",
      "detail": "The community nextcloud:35-apache image in Docker Compose, Apache and PHP in one container",
      "port": 8000,
      "data": "~/nextcloud/data"
    },
    {
      "name": "PostgreSQL 18",
      "detail": "postgres:18-alpine in Docker Compose",
      "data": "~/nextcloud/postgres"
    },
    {
      "name": "Redis 8",
      "detail": "redis:8-alpine, for file locking and the shared cache"
    },
    {
      "name": "Background jobs",
      "detail": "A systemd timer runs Nextcloud's cron.php every 5 minutes"
    },
    {
      "name": "Nightly backup",
      "detail": "A systemd timer; the database and settings, kept two weeks",
      "data": "~/nextcloud/backups"
    }
  ],
  "access": [
    {
      "url": "https://my-nextcloud.exe.xyz/",
      "who": "private",
      "what": "The web interface, behind exe.dev login and Nextcloud's own"
    },
    {
      "url": "https://my-nextcloud.exe.xyz/remote.php/dav/",
      "who": "private",
      "what": "WebDAV, CalDAV and CardDAV, for tools that send an exe.dev VM token"
    },
    {
      "url": "https://my-nextcloud.exe.xyz/",
      "who": "public",
      "what": "Everything, for the desktop and phone apps, once you choose to open it"
    }
  ],
  "delivers": [
    "Nextcloud 35 on PostgreSQL 18 and Redis, set up for exe.dev's HTTPS proxy, back after a reboot.",
    "An admin account whose password is in ~/nextcloud/admin-password (mode 600).",
    "Background jobs every 5 minutes from a systemd timer, not from page views.",
    "CalDAV and CardDAV discovery that answers with https:// links, so calendar apps find it.",
    "Nightly backups of the database and settings, with one restored into a scratch database."
  ],
  "deployable": true,
  "deploy": {
    "new_vm_url": "https://exe-staging.dev/new?prompt=Set%20up%20Nextcloud%20on%20this%20VM%20by%20following%20the%20exe.dev%20recipe%20at%20https%3A%2F%2Fexe-staging.dev%2Fdeploy%2Fnextcloud.md%3Fvia%3Ddeploy%20from%20top%20to%20bottom.%0A%0AThe%20recipe%27s%20example%20VM%20name%20is%20my-nextcloud.%20This%20VM%27s%20name%20is%20the%20output%20of%20%60hostname%60%3A%20use%20it%20wherever%20the%20recipe%20writes%20my-nextcloud.%20Skip%20the%20step%20that%20creates%20the%20VM%3B%20you%20are%20on%20it.%0A%0AThis%20recipe%20needs%20a%20100GB%20disk%2C%20and%20a%20new%20VM%27s%20may%20be%20smaller.%20Before%20you%20install%20anything%2C%20run%20%60df%20-h%20%2F%60.%20If%20its%20size%20is%20under%2090G%2C%20stop%20and%20ask%20me%20to%20grow%20the%20disk%2C%20either%20with%20this%20link%3A%20https%3A%2F%2Fexe.dev%2Fsuggest%3Fcommand%3Dresize%2520my-nextcloud%2520--disk%253D100GB%20or%2C%20on%20my%20computer%2C%20with%20%60ssh%20exe.dev%20resize%20my-nextcloud%20--disk%3D100GB%60.%20When%20I%20say%20it%27s%20done%2C%20run%20%60sudo%20resize2fs%20%22%24%28findmnt%20-no%20SOURCE%20%2F%29%22%60%2C%20check%20%60df%20-h%20%2F%60%20again%2C%20and%20carry%20on.%0A%0AYou%20are%20done%20when%20all%20of%20these%20are%20true.%20Check%20each%20one%20yourself%3A%0A-%20Nextcloud%2035%20on%20PostgreSQL%2018%20and%20Redis%2C%20set%20up%20for%20exe.dev%27s%20HTTPS%20proxy%2C%20back%20after%20a%20reboot.%0A-%20An%20admin%20account%20whose%20password%20is%20in%20~%2Fnextcloud%2Fadmin-password%20%28mode%20600%29.%0A-%20Background%20jobs%20every%205%20minutes%20from%20a%20systemd%20timer%2C%20not%20from%20page%20views.%0A-%20CalDAV%20and%20CardDAV%20discovery%20that%20answers%20with%20https%3A%2F%2F%20links%2C%20so%20calendar%20apps%20find%20it.%0A-%20Nightly%20backups%20of%20the%20database%20and%20settings%2C%20with%20one%20restored%20into%20a%20scratch%20database.%0A%0ARead%20the%20whole%20recipe%2C%20including%20the%20closed%20details.%20For%20initial%20setup%2C%0Afollow%20%22Install%20by%20hand%22%20from%20%22Check%20the%20disk%20and%20memory%22%20on%2C%20skipping%0AVM%20creation%20and%20SSH%3A%20Docker%2C%20the%20settings%2C%20the%20Apache%20snippet%2C%20the%0ACompose%20stack%2C%20the%20first%20start%2C%20the%20background-jobs%20timer%2C%20the%20backup%0Atimer%20and%20the%20backup%20test.%20The%20walkthrough%20at%20the%20top%20is%20for%20the%20owner%0Aafterwards.%0AWork%20as%20exedev%20in%20~%2Fnextcloud.%20Never%20overwrite%20an%20existing%20.env%20or%0Aadmin-password.%20Don%27t%20create%20users%2C%20app%20passwords%20or%20VM%20tokens%2C%20install%0ANextcloud%20Office%2C%20set%20up%20email%20or%20S3%2C%20or%20change%20the%20image%20tag.%20Don%27t%20run%0ARestore%20or%20Update.%20Leave%20the%20VM%20private%3B%20making%20it%20public%20is%20the%0Aowner%27s%20choice%20%28see%20%22Choose%20who%20can%20reach%20it%22%29.%0AVerify%20docker.service%20is%20enabled%2C%20all%20three%20containers%20are%20up%2C%0Astatus.php%20on%20localhost%3A8000%20says%20installed%20true%20with%20the%20VM%27s%0Ahostname%2C%20the%20cron%20timer%20has%20run%20cron.php%20once%2C%20the%20backup%20timer%20is%0Aenabled%20and%20the%20backup%20test%20passes.%20Do%20not%20reboot.%0ANever%20paste%20the%20admin%20password%20into%20the%20chat%3B%20say%20it%27s%20in%0A~%2Fnextcloud%2Fadmin-password.%20Finish%20by%20pointing%20the%20owner%20to%20%22Sign%20in%0Aand%20upload%22%20and%20%22Choose%20who%20can%20reach%20it%22.%0A%0AFinish%20with%20the%20URLs%20I%20should%20open.%0A",
    "disk": "100GB",
    "terminal": "curl -fsSL https://exe-staging.dev/deploy/nextcloud/prompt.txt | ssh exe.dev new --disk=100GB --prompt=/dev/stdin",
    "prompt": "Set up Nextcloud on this VM by following the exe.dev recipe at https://exe-staging.dev/deploy/nextcloud.md?via=deploy from top to bottom.\n\nThe recipe's example VM name is my-nextcloud. This VM's name is the output of `hostname`: use it wherever the recipe writes my-nextcloud. Skip the step that creates the VM; you are on it.\n\nThis recipe needs a 100GB disk, and a new VM's may be smaller. Before you install anything, run `df -h /`. If its size is under 90G, stop and ask me to grow the disk, either with this link: https://exe.dev/suggest?command=resize%20my-nextcloud%20--disk%3D100GB or, on my computer, with `ssh exe.dev resize my-nextcloud --disk=100GB`. When I say it's done, run `sudo resize2fs \"$(findmnt -no SOURCE /)\"`, check `df -h /` again, and carry on.\n\nYou are done when all of these are true. Check each one yourself:\n- Nextcloud 35 on PostgreSQL 18 and Redis, set up for exe.dev's HTTPS proxy, back after a reboot.\n- An admin account whose password is in ~/nextcloud/admin-password (mode 600).\n- Background jobs every 5 minutes from a systemd timer, not from page views.\n- CalDAV and CardDAV discovery that answers with https:// links, so calendar apps find it.\n- Nightly backups of the database and settings, with one restored into a scratch database.\n\nRead the whole recipe, including the closed details. For initial setup,\nfollow \"Install by hand\" from \"Check the disk and memory\" on, skipping\nVM creation and SSH: Docker, the settings, the Apache snippet, the\nCompose stack, the first start, the background-jobs timer, the backup\ntimer and the backup test. The walkthrough at the top is for the owner\nafterwards.\nWork as exedev in ~/nextcloud. Never overwrite an existing .env or\nadmin-password. Don't create users, app passwords or VM tokens, install\nNextcloud Office, set up email or S3, or change the image tag. Don't run\nRestore or Update. Leave the VM private; making it public is the\nowner's choice (see \"Choose who can reach it\").\nVerify docker.service is enabled, all three containers are up,\nstatus.php on localhost:8000 says installed true with the VM's\nhostname, the cron timer has run cron.php once, the backup timer is\nenabled and the backup test passes. Do not reboot.\nNever paste the admin password into the chat; say it's in\n~/nextcloud/admin-password. Finish by pointing the owner to \"Sign in\nand upload\" and \"Choose who can reach it\".\n\nFinish with the URLs I should open.\n",
    "prompt_url": "https://exe-staging.dev/deploy/nextcloud/prompt.txt"
  },
  "published": "2026-11-21",
  "updated": "2026-11-21",
  "verified": "2026-11-21",
  "related": [
    "immich",
    "s3-storage",
    "vaultwarden",
    "postgres",
    "docker-compose",
    "chatwoot"
  ],
  "alternatives": [
    "Dropbox",
    "Google Drive",
    "OneDrive",
    "iCloud"
  ]
}
