Skip to main content

Nextcloud All-In-One

version: "3.8"

volumes:
 nextcloud_aio_mastercontainer:
   name: nextcloud_aio_mastercontainer
services:
 nextcloud:
   image: nextcloud/all-in-one:latest
   restart: unless-stopped
   container_name: nextcloud-aio-mastercontainer
   volumes:
     - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
     - /var/run/docker.sock:/var/run/docker.sock:ro
   ports:
     - 8145:8080 # change the port on the left side if it's already in use on your host system.
   environment:
     - NEXTCLOUD_DATADIR=/srv/.../Files/NextcloudAIO/ # see How to change the default location of Nextcloud's Datadir*
     - APACHE_PORT=11000  # change this port number if 11000 is already in use on your host system.
   #  - APACHE_DISABLE_REWRITE_IP=1
   #  - NEXTCLOUD_TRUSTED_DOMAINS=ncaio.steph.click 192.168.1.102 # Your domain name + proxy host IP
   #  - TRUSTED_PROXIES=192.168.1.102 # proxy host IP

*How to change the default location of Nextcloud's Datadir

Nginx proxy manager must point to host machine and port 11000

Nextclouds config.php file is stored in the nextcloud_aio_nextcloud Docker volume and can be edited by following the config.php documentation.

You can run Nextcloud's usual occ commands by following the occ documentation.

Nextcloud's datadir is getting stored in the /srv/dev-disk-by-uuid-7fe66601-5ca0-4c09-bc13-a015025fe53a/Files/NextcloudAIO/ directory. See the NEXTCLOUD_DATADIR documentation on how to change this.

The Nextcloud container is confied and local external storage in Nextcloud is disabled. See the NEXTCLOUD_MOUNT documentation on how to change this.

Nextcloud has an upload limit of 10G configured (for public link uploads. Bigger uploads are always possible when users are logged in). See the NEXTCLOUD_UPLOAD_LIMIT documentation on how to change this.

For Nextcloud, a memory limit of 512M per PHP process is configured. See the NEXTCLOUD_MEMORY_LIMIT documentation on how to change this.

Nextcloud has a timeout of 3600 seconds configured (important for big file uploads). See the NEXTCLOUD_MAX_TIME documentation on how to change this.

The /dev/dri device which is needed for hardware transcoding is not attached to the Nextcloud container. See the NEXTCLOUD_ENABLE_DRI_DEVICE documentation on how to change this.

For further documentation on AIO, refer to this page. You can use the browser search [CTRL]+[F] to search through the documentation. Additional documentation can be found here.