version: "3.8" volumes: nccdata: driver_opts: type: nfs o: addr=maurice,nfsvers=4 device: :/nextcloudtest/nextcloud ncredis: driver_opts: type: nfs o: addr=maurice,nfsvers=4 device: :/nextcloudtest/redis nctestcdb: driver_opts: type: nfs o: addr=maurice,nfsvers=4 device: :/nextcloudtestdb 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: #- nccdata/config:/var/www/html/config #/srv/dev-disk-by-label-disk1 needs to be adjusted #- nccdata/data:/var/www/html/data #/srv/dev-disk-by-label-disk1 needs to be adjusted - nccdata:/var/www/html #/srv/dev-disk-by-label-disk1 needs to be adjusted # NAS shares # - /srv/dev-disk-by-uuid-f3ca381b-e85a-4348-8086-833317c5d96e/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: image: ghcr.io/linuxserver/mariadb container_name: nextclouddb environment: - PUID=1000 #change PUID if needed - PGID=1000 #change PGID if needed - MARIADB_ROOT_PASSWORD="dbpassword" - MYSQL_ROOT_PASSWORD=mariadbpassword #change password - TZ=Europe/Berlin #Change Time Zone if needed volumes: - nctestcdb:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted restart: unless-stopped # ports: # - 5306:3306