Stack Matrix Hub (11)
Nextcloud Core + Apache/PHP + Postgres 16 + Redis Baseline
Size php-custom.ini memory_limit, pm.max_children, Postgres shared_buffers, and Redis file locking for 5-250 team sync seats.
1,280 MB base · +18 MB/seat · Redis oc_file_locks
Why Core AIO Pairs Apache/PHP-FPM with Postgres 16 & Redis
Nextcloud All-in-One deploys Apache + PHP-FPM behind 127.0.0.1:11000 alongside dedicated PostgreSQL 16 and Redis 7 containers. Redis absorbs 100% of transactional oc_file_locks traffic so desktop sync clients never block Postgres connections during concurrent folder updates.
Sizing PHP-FPM Workers and OPcache JIT
Reserve 18 MB per active team seat above the 1,280 MB core baseline. Pin NEXTCLOUD_MEMORY_LIMIT to 512M for teams under 120 seats (1024M above 120 seats) and allocate 192-256 MB to opcache.memory_consumption with opcache.jit=1255.
Measured Thresholds & Configuration
| Team Seats | Core + DB + Redis RAM | pm.max_children | OPcache / PHP Limit |
|---|---|---|---|
| 5-25 Seats | 1.4 - 1.7 GB | 16 workers | 192M / 512M |
| 45-80 Seats | 2.1 - 2.8 GB | 30-48 workers | 256M / 512M |
| 120-250 Seats | 3.5 - 6.0 GB | 72-140 workers | 256M / 1024M |