# Nextcloud — Self-Hosted Cloud Platform for Files, Calendar & More > Nextcloud is the leading open-source cloud platform for file sync, sharing, calendar, contacts, email, video calls, and office collaboration — a Google Workspace alternative. ## Install Save the content below to `.claude/skills/` or append to your `CLAUDE.md`: ## Quick Use ```bash docker run -d --name nextcloud -p 8080:80 -v nextcloud-data:/var/www/html nextcloud:latest ``` Open `http://localhost:8080` — create your admin account and start using your private cloud. ## Intro **Nextcloud** is the leading open-source self-hosted cloud platform, providing file sync and sharing, calendar, contacts, email, video conferencing, office document editing, and dozens more productivity tools. It serves as a comprehensive alternative to Google Workspace, Microsoft 365, and Dropbox — all running on your own infrastructure. With 34.6K+ GitHub stars and AGPL-3.0 license, Nextcloud is trusted by millions of users and thousands of organizations worldwide, from individuals to government agencies and enterprises requiring data sovereignty. ## What Nextcloud Does Nextcloud provides a complete productivity suite: - **Files**: Sync, share, and collaborate on files across all devices with end-to-end encryption option - **Calendar**: CalDAV calendar with scheduling, invitations, and room booking - **Contacts**: CardDAV contact management synced across devices - **Talk**: Video conferencing, screen sharing, and team chat (like Zoom + Slack) - **Office**: Built-in document editing with Collabora Online or OnlyOffice integration - **Mail**: Email client integrated into the Nextcloud interface - **Deck**: Kanban board for project management - **Notes**: Markdown note-taking with mobile sync - **Photos**: AI-powered photo management with face recognition and albums ## Architecture ``` ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ Web / Desktop│────▶│ Nextcloud │────▶│ MySQL / │ │ / Mobile App │ │ Server (PHP)│ │ PostgreSQL │ └──────────────┘ └──────┬───────┘ └──────────────┘ │ ┌─────────────┼─────────────┐ │ │ │ ┌──────┴──┐ ┌─────┴───┐ ┌─────┴───┐ │ Redis │ │ Storage │ │Collabora│ │ (Cache)│ │(Local/S3)│ │ (Office)│ └─────────┘ └─────────┘ └─────────┘ ``` ## Self-Hosting ### Docker Compose (Production) ```yaml services: nextcloud: image: nextcloud:latest ports: - "8080:80" environment: MYSQL_HOST: db MYSQL_DATABASE: nextcloud MYSQL_USER: nextcloud MYSQL_PASSWORD: nextcloud NEXTCLOUD_ADMIN_USER: admin NEXTCLOUD_ADMIN_PASSWORD: your-admin-password REDIS_HOST: redis volumes: - nextcloud-data:/var/www/html depends_on: - db - redis db: image: mariadb:11 environment: MYSQL_ROOT_PASSWORD: root-password MYSQL_DATABASE: nextcloud MYSQL_USER: nextcloud MYSQL_PASSWORD: nextcloud volumes: - db-data:/var/lib/mysql redis: image: redis:7-alpine volumes: nextcloud-data: db-data: ``` ## Key Features ### App Ecosystem Nextcloud has 400+ apps in its App Store: - **Productivity**: Calendar, Contacts, Tasks, Notes, Deck, Bookmarks - **Communication**: Talk (video), Mail, Circles (groups) - **Office**: Collabora Online, OnlyOffice, Markdown Editor - **Security**: Two-Factor Auth, End-to-End Encryption, Audit Log - **Integration**: External Storage (S3, SMB, FTP), LDAP/AD, SSO ### Desktop & Mobile Sync Native sync clients for all platforms: - **Desktop**: Windows, macOS, Linux — auto-sync files like Dropbox - **Mobile**: iOS and Android with auto-upload for photos/videos - **WebDAV**: Standard protocol, compatible with any WebDAV client ### Enterprise Features - LDAP/Active Directory integration - SAML/SSO authentication - Audit logging and compliance - File access control and retention policies - Branding and theming ## Nextcloud vs Alternatives | Feature | Nextcloud | Google Workspace | Microsoft 365 | Seafile | |---------|-----------|-----------------|---------------|---------| | Open Source | Yes (AGPL-3.0) | No | No | Partial | | Self-hosted | Yes | No | Partial | Yes | | Office suite | Collabora/OnlyOffice | Google Docs | Office Online | SeaDoc | | Video calls | Nextcloud Talk | Google Meet | Teams | No | | Calendar/Contacts | Built-in | Built-in | Built-in | No | | E2E Encryption | Yes | No | No | No | | App ecosystem | 400+ apps | Marketplace | AppSource | Limited | | Pricing | Free (self-host) | $6/user/mo | $6/user/mo | Free (self-host) | ## FAQ **Q: How's Nextcloud performance? Does large-file sync run fast?** A: Performance depends on server configuration. Tune with Redis cache, OPcache, and PHP-FPM. Use chunked upload for large files. For teams of 10+ users, plan for 4GB+ RAM and SSD storage. **Q: Can it replace Google Workspace?** A: For file sync and collaboration, Nextcloud is a mature alternative. Pair it with Collabora Online for in-browser Office editing. Talk provides video conferencing. Mail is client-only (you need your own mail server). Overall, it covers 80%+ of Google Workspace use cases. **Q: How do I back up Nextcloud?** A: Back up three things: 1) the data directory (/var/www/html/data), 2) the database (mysqldump), and 3) the config file (config.php). Use cron to schedule regular off-site backups. ## Source & Thanks - GitHub: [nextcloud/server](https://github.com/nextcloud/server) — 34.6K+ ⭐ | AGPL-3.0 - Website: [nextcloud.com](https://nextcloud.com) --- Source: https://tokrepo.com/en/workflows/nextcloud-self-hosted-cloud-platform-files-calendar-more-e8506b82 Author: AI Open Source