Using Collabora & improvements Nextcloud

Hallo together,

have a functionally NX Installation, realised with debian and docker-compose with the following things:

Nextcloud
Database
Redis Server (cant test it, if its working)
collabora (cant use it)

caddy Webserver (extra Container)

docker-compose.yml

version: '3'

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb
    container_name: nextcloud_db3
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - /docker/nextcloud3/db:/var/lib/mysql
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin 
      - MYSQL_ROOT_PASSWORD=PW
      - MYSQL_PASSWORD=PW
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
  redis:
    image: redis
    container_name: nextcloud_redis3
    restart: always
    volumes:
      - ./redis:/data
    command: redis-server --requirepass PW
  collabora:
    image: collabora/code
    depends_on:
      - app
    container_name: nextcloud_collabora
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin 
      - password=PW
      - username=nextcloud
      - extra_params=--o:ssl.enable=true
    cap_add:
      - MKNOD
    ports:
      - 9980:9980
  app:
    image: nextcloud:latest
    container_name: nextcloud3
    restart: always
    ports:
      - 1002:80
    links:
      - db
      - redis
    volumes:
      - ./html:/var/www/html
      - ./custom_apps:/var/www/html/custom_apps
      - ./config:/var/www/html/config
      - ./data:/var/www/html/data
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin 
      - MYSQL_PASSWORD=PW
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - REDIS_HOST_PASSWORD=PW
      - PHP_MEMORY_LIMIT=2048M 
      - PHP_UPLOAD_LIMIT=2048M 
      - REDIS_HOST=redis
    depends_on:
      - db
      - redis

caddy config

caddy.domain.de {
        root * /usr/share/caddy
        file_server
test02.domain.de {
        reverse_proxy 192.168.188.35:1002
redir /.well-known/carddav /remote.php/carddav 301
redir /.well-known/caldav /remote.php/caldav 301
# "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds.
header Strict-Transport-Security "max-age=63072000"
}
test03.domain.de {
        reverse_proxy 192.168.188.35:1003
}

What I would like to achieve:

  • Have the language in German directly during installation, parameters may not be correct?
  • Check Redis function?
  • Get Collabora to work so that I can edit files online or from Nextcloud
  • Possible general improvements to my instance
  • Cronjob is not running, unfortunately I can’t find a solution, do I have to do this outside the Nextcloud container?
  • config directly from the docker-compose possible, e.g. phone region or mail address?

I hope you can help me with some points.
Please ask if you have any questions

Hallo zusammen,

habe eine funktionsfähige NX Installation auf einem Debian mit Docker-compoe mit folgenden Bestandteilen:

  • Nextcloud

  • Datenbank

  • Redis Server (ob sie funktioniert kann ich nicht prüfen)

  • collabora (bekomme es nicht zum laufen

  • caddy Webserver (extra Container)

docker-compose.yml

version: '3'

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb
    container_name: nextcloud_db3
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - /docker/nextcloud3/db:/var/lib/mysql
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin (funktioniert nicht, bleibt englisch)
      - MYSQL_ROOT_PASSWORD=PW
      - MYSQL_PASSWORD=PW
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
  redis:
    image: redis
    container_name: nextcloud_redis3
    restart: always
    volumes:
      - ./redis:/data
    command: redis-server --requirepass PW
  collabora:
    image: collabora/code
    depends_on:
      - app
    container_name: nextcloud_collabora
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin (funktioniert nicht, bleibt englisch)
      - password=PW
      - username=nextcloud
      - extra_params=--o:ssl.enable=true
    cap_add:
      - MKNOD
    ports:
      - 9980:9980
  app:
    image: nextcloud:latest
    container_name: nextcloud3
    restart: always
    ports:
      - 1002:80
    links:
      - db
      - redis
    volumes:
      - ./html:/var/www/html
      - ./custom_apps:/var/www/html/custom_apps
      - ./config:/var/www/html/config
      - ./data:/var/www/html/data
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin (funktioniert nicht, bleibt englisch)
      - MYSQL_PASSWORD=PW
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - REDIS_HOST_PASSWORD=PW
      - PHP_MEMORY_LIMIT=2048M (funktioniert :))
      - PHP_UPLOAD_LIMIT=2048M (funktioniert :))
      - REDIS_HOST=redis
    depends_on:
      - db
      - redis

caddy config

caddy.domain.de {
        root * /usr/share/caddy
        file_server
test02.domain.de {
        reverse_proxy 192.168.188.35:1002
redir /.well-known/carddav /remote.php/carddav 301
redir /.well-known/caldav /remote.php/caldav 301
#Unten-The "Strict-Transport-Security" HTTP header is not set to at least "15552000" seconds.
header Strict-Transport-Security "max-age=63072000"
}
test03.domain.de {
        reverse_proxy 192.168.188.35:1003
}

Was ich alles erreichen möchte:

  • Sprache direkt bei der Installation auf deutsch haben, Parameter stimmen vielleicht nicht?
  • Redis Funktion prüfen?
  • Collabora zum Laufen bekommen, damit ich Dateien online bzw, vom Nextcloud bearbeiten kann
  • Eventuelle allgemeine Verbesserungen meiner Instanz
  • Cronjob läuft nicht, komme leider zu keiner Lösung, muss ich das außerhalb vom Nextcloud Container machen?
  • config direkt von der docker-compose mitgeben möglich wie z.b. Telefonregion oder Mailadresse?

Ich hoffe man kann mir bei einigen Punkten helfen.
Bei Fragen gerne fragen

hi @hs5499 please avoid double postings, this community is run by volonteers and nobody wants to spend his spar time twice.

topic you ask have been discussed often already, please use the search. here some help