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=nextcloudstorage,nfsvers=4 device: :/nextcloud_storage ncredis: driver_opts: type: nfs o: addr=dockerstorage,nfsvers=4 device: :/dockerstorage/nextcloud/redis 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