version: "3.8" volumes: nchome: driver_opts: type: nfs o: addr=dockerstorage,nfsvers=4 device: :/dockerstorage/nextcloud/nchome ncdata: driver_opts: type: nfs o: addr=maurice,nfsvers=4 device: :/nextcloud_data ncredis: driver_opts: type: nfs o: addr=dockerstorage,nfsvers=4 device: :/dockerstorage/nextcloud/redis ncdatabase: driver_opts: type: nfs o: addr=dockerstorage,nfsvers=4 device: :/dockerstorage/nextcloud/ncdatabase pictures: driver_opts: type: nfs o: addr=maurice,nfsvers=4 device: :/pictures services: nextcloud: image: nextcloud container_name: nextcloud environment: - PUID=1000 #change PUID if needed - PGID=100 #change PGID if needed - TZ=Europe/Berlin #change Time Zone if needed - REDIS_HOST=redis volumes: - ncdata:/var/www/html/data #/srv/dev-disk-by-label-disk1 needs to be adjusted - nchome:/var/www/html #/srv/dev-disk-by-label-disk1 needs to be adjusted # NAS shares - pictures:/pictures #- /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/video:/video depends_on: - mariadb ports: # uncomment this and the next line if you want to bypass the proxy - 5443:443 - 5080:80 restart: unless-stopped redis: image: redis:latest restart: always volumes: - ncredis:/var/lib/redis mariadb: user: "1000:100" image: ghcr.io/linuxserver/mariadb container_name: nextclouddb environment: # - PUID=1000 #change PUID if needed # - PGID=100 #change PGID if needed - MARIADB_ROOT_PASSWORD="dbpassword" - MYSQL_ROOT_PASSWORD=mariadbpassword #change password - TZ=Europe/Berlin #Change Time Zone if needed volumes: - ncdatabase:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted restart: unless-stopped