Skip to content

Nextcloud

Nextcloud offers a self-hosted file storage and sync platform with powerful collaboration capabilities with desktop, mobile and web interfaces.


Terminal window
mkdir -p {{DOCKER_PATH_VAR}}/nextcloud && cd {{DOCKER_PATH_VAR}}/nextcloud
Terminal window
nano compose.yml
compose.yml
name: nextcloud-aio
services:
nextcloud-aio-mastercontainer:
image: ghcr.io/nextcloud-releases/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- TZ={{TIME_ZONE_VAR}}
network_mode: bridge
ports:
- "80:80"
- "8080:8080"
- "8443:8443"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
Terminal window
docker compose up -d

http://localhost:8443 or http://{{SERVER_IP_VAR}}:8443

After completing the web-based installer, restart the Nextcloud container to apply default memory caching and transactional file locking configurations.

Terminal window
docker compose restart

Alternatively, you can apply your own configurations by editing config.php.

Terminal window
nano ./config/www/nextcloud/config/config.php
./config/www/nextcloud/config/config.php
'redis' => [
'host' => 'nextcloud_redis',
'port' => 6379,
],
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\APCu',
'upgrade.disable-web' => true,