Nextcloud

Backup and Restore Script by DecaTec

get rid of spammy message "Get your own account"

Add this in config.php: 'simpleSignUpLink.shown' => false

source: https://help.nextcloud.com/t/remove-link-get-your-own-free-account/41131

get rid of ad "Reasons to use Nextcloud in your organization"

truncate -s 0 apps/settings/templates/settings/personal/development.notice.php

source https://help.nextcloud.com/t/how-to-remove-the-reasons-to-use-nextcloud-in-your-organization/104750/4

Nextcloud with Mariadb, Redis, Collabora, and Fulltext Search (docker compose)


services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: nextcloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - ./appdata:/config
      - ./data:/data
    ports:
      - 127.0.0.1:8080:80
    networks:
      - default
    restart: unless-stopped
    depends_on:
      - db
      - elasticsearch
    links:
      - redis


  db:
    image: linuxserver/mariadb:latest
    container_name: nextcloud_db
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=rootpassword
      - TZ=Etc/UTC
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=mysqlpassword
    volumes:
      - ./appdata_db:/config
    networks:
      - default
    restart: unless-stopped

  redis:
    image: redis:alpine
    restart: always
    networks:
      - default
    command: redis-server --requirepass password


  collabora:
    image: collabora/code
    container_name: collabora
    hostname: collabora
    ports:
      - 127.0.0.1:9980:9980
    environment:
      - domain=sub\.domain\.com
      - username=username
      - password=password

    volumes:
      - ./collabora:/config
    # env_file: code.env
    cap_add:
     - MKNOD
    depends_on:
      - nextcloud
    restart: unless-stopped


  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
    networks:
      - default
    ports:
      - 127.0.0.1:9200:9200
    restart: always
    environment:
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
      - xpack.security.enabled=false
    user: 1000:1000
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - elasticsearch:/usr/share/elasticsearch/data

volumes:
    elasticsearch: