Docker Container Collection for Nextcloud
Extends the default configuration with better PHP settings and implements the option to use Samba Share.
docker pull craftingit/nextcloud:latestParameters:
USER_ID- Set the UserID of www-userGROUP_ID- Set the GroupID of www-userADDITIONAL_GROUPS- Add the user to additional groups. In the formatGROUPID1:GROUPNAME1;GROUPID2:GROUPNAME2CI_TRUSTED_DOMAINS- Space-separated list of trusted domainsCI_ALLOW_LOCAL_REMOTE_SERVERS- Allow local remote serversCI_DATADIRECTORY- Custom data directoryCI_DEFAULTAPP- Default app to openCI_MAINTENANCE_WINDOW_START- Maintenance window start timeCI_TRASHBIN_RETENTION_OBLIGATION- Custom trashbin retention settingsCI_VERSIONS_RETENTION_OBLIGATION- Custom file versions retention settingsCI_FILELOCKING_ENABLED- Enable or disable file locking
Adds Tesseract OCR and scheduled maintenance tasks.
docker pull craftingit/nextcloud-cron:latestParameters:
CRON- If set to '1', the cron command will run every 5 minutesFULLTEXT- If set to '1', the fulltext search index rebuilds every night between 23:00-03:00PREVIEW- If set to '1', image previews will be generated every 5 minutesONCE- If set to '1', the container will run once and exitUSER_ID- Set the UserID of www-userGROUP_ID- Set the GroupID of www-userADDITIONAL_GROUPS- Add the user to additional groups. In the formatGROUPID1:GROUPNAME1;GROUPID2:GROUPNAME2CI_TRUSTED_DOMAINS- Space-separated list of trusted domainsCI_ALLOW_LOCAL_REMOTE_SERVERS- Allow local remote serversCI_DATADIRECTORY- Custom data directoryCI_DEFAULTAPP- Default app to openCI_MAINTENANCE_WINDOW_START- Maintenance window start timeCI_TRASHBIN_RETENTION_OBLIGATION- Custom trashbin retention settingsCI_VERSIONS_RETENTION_OBLIGATION- Custom file versions retention settingsCI_FILELOCKING_ENABLED- Enable or disable file locking
Optimized PHP-FPM container with high-performance settings for Nextcloud. Includes Tesseract OCR, image processing tools, and advanced PHP optimizations.
docker pull craftingit/nextcloud-fpm:latestParameters:
USER_ID- Set the UserID of www-userGROUP_ID- Set the GroupID of www-userADDITIONAL_GROUPS- Add the user to additional groups. In the formatGROUPID1:GROUPNAME1;GROUPID2:GROUPNAME2PHP_MEMORY_LIMIT- Memory limit for PHP (default: 512M)PHP_UPLOAD_LIMIT- Upload file size limit (default: 16G)CI_TRUSTED_DOMAINS- Space-separated list of trusted domainsCI_ALLOW_LOCAL_REMOTE_SERVERS- Allow local remote serversCI_DATADIRECTORY- Custom data directoryCI_DEFAULTAPP- Default app to openCI_MAINTENANCE_WINDOW_START- Maintenance window start timeCI_TRASHBIN_RETENTION_OBLIGATION- Custom trashbin retention settingsCI_VERSIONS_RETENTION_OBLIGATION- Custom file versions retention settingsCI_FILELOCKING_ENABLED- Enable or disable file locking
Nginx web server optimized for Nextcloud with proper caching, security settings, and WebSocket support for real-time notifications.
docker pull craftingit/nextcloud-nginx:latestFeatures:
- HTTP/2 bandwidth optimization
- Gzip compression
- Advanced caching policies
- WebSocket proxy for notify_push
- Security headers preconfigured
- Optimized for large file uploads (512MB)
- Built-in healthcheck
Lightweight Alpine-based container for Nextcloud's notify_push service, enabling real-time notifications and updates.
docker pull craftingit/nextcloud-notify-push:latestParameters:
NEXTCLOUD_URL- URL of the Nextcloud instance (default: "http://nextcloud:80")DATABASE_URL- Database connection string (PostgreSQL format: postgres://user:password@host/dbname)REDIS_URL- Redis connection string (format: redis://redis:6379?password=secret)LOG_LEVEL- Log verbosity level (default: "info")ALLOW_SELF_SIGNED- Allow self-signed certificates (default: "false")
The complete Nextcloud stack includes:
- PostgreSQL Database - Reliable database backend for Nextcloud
- Adminer - Web-based database management interface
- Redis Cache - High-performance cache for transactional locking and application caching
- NGINX Web Server - Optimized web server with HTTP/2 support
- Nextcloud App (FPM) - PHP-FPM application server
- Nextcloud Cron - Background task scheduler
- Notify Push - Real-time notification service using WebSockets
- COTURN Server - WebRTC signaling for Nextcloud Talk
- OnlyOffice - (Optional) Collaborative document editing
The stack can be configured using these environment variables:
POSTGRES_DB- Database name (default: nextcloud)POSTGRES_USER- Database user (default: nextcloud)POSTGRES_PASSWORD- Database password (default: nextcloud)POSTGRES_HOST- Database host (default: db)
REDIS_HOST- Redis server hostname (default: redis)REDIS_HOST_PASSWORD- Redis password (default: nextcloud)
TRUSTED_PROXYS- List of trusted proxiesOVERWRITEPROTOCOL- Protocol to use in URLs (http/https)OVERWRITECLIURL- URL to use for CLI operations
PHP_MEMORY_LIMIT- PHP memory limitPHP_UPLOAD_LIMIT- Maximum upload file size
CI_TRUSTED_DOMAINS- List of trusted domainsCI_ALLOW_LOCAL_REMOTE_SERVERS- Allow local servers in remote URLsCI_DATADIRECTORY- Custom data directory path
- Preconfigured for Nextcloud Talk with authentication
For a complete high-performance deployment:
# Clone the repository
git clone https://github.com/CraftingITde/NextcloudDocker.git
cd NextcloudDocker/Config
# Start the stack
docker-compose up -dThis repository includes GitHub Actions workflows that automatically:
- Check for new Nextcloud versions weekly
- Check for new notify_push releases weekly
- Auto-merge Dependabot updates for Docker images and GitHub Actions