Nextcloud
A safe home for all your data
Alternative to: Dropbox, Google Drive, OneDrive, Box
Nextcloud is a self-hosted productivity platform that lets you store, sync, and share files, calendars, and contacts across your devices while keeping full control of your data. It is expandable with hundreds of apps, including Calendar, Contacts, Mail, and Video Chat, and includes encryption and two-factor authentication for security.
Nextcloud Docker Compose example
Self-host Nextcloud on your own server, homelab, or VPS starting from this Docker Compose example.
It runs Nextcloud in Docker containers using the official nextcloud:latest image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
nextcloud:
image: nextcloud:latest
restart: unless-stopped
environment:
# Space-separated list of hostnames Nextcloud will answer for. "localhost" is
# always trusted; add your public domain so requests coming through the reverse
# proxy are accepted instead of rejected as an untrusted domain.
NEXTCLOUD_TRUSTED_DOMAINS: "localhost"
volumes:
# Holds the whole Nextcloud installation: config, apps, the default SQLite
# database and all user files.
- nextcloud:/var/www/html
volumes:
nextcloud: Prefer a managed setup? WinterFlow installs, configures, and updates Nextcloud for you using this same Docker Compose configuration.