High Performance Backend working/not working?

Hi,
I just set up my Nextcloud 22 (docker, traefik) to utilize high performance backend but I am not sure if it is working…
I followed this tutorial
My logs look like this:

77.8.63.167 - - [04/Nov/2021:19:15:11 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:13 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:15 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:17 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:19 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:21 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:23 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:25 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:27 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - root [04/Nov/2021:19:15:29 +0000] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1187 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - root [04/Nov/2021:19:15:29 +0000] "GET /remote.php/dav/avatars/root/128.png HTTP/1.1" 200 2219 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - root [04/Nov/2021:19:15:29 +0000] "PROPFIND /remote.php/dav/files/root/ HTTP/1.1" 207 989 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - - [04/Nov/2021:19:15:29 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:31 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:33 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:35 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:37 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:39 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:41 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:43 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:45 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:47 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:49 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:51 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:53 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:55 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:15:57 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - root [04/Nov/2021:19:15:58 +0000] "PROPFIND /remote.php/dav/files/root/ HTTP/1.1" 207 989 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - root [04/Nov/2021:19:15:59 +0000] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1187 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - root [04/Nov/2021:19:15:59 +0000] "GET /remote.php/dav/avatars/root/128.png HTTP/1.1" 200 2219 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - - [04/Nov/2021:19:15:59 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
crond: wakeup dt=50
crond: file www-data:
crond:  line php -f /var/www/html/cron.php
77.8.63.167 - - [04/Nov/2021:19:16:01 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:03 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:05 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:07 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:09 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:11 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:13 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:15 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:17 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:19 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:21 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:23 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:25 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:27 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - root [04/Nov/2021:19:16:27 +0000] "PROPFIND /remote.php/dav/files/root/ HTTP/1.1" 207 989 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - root [04/Nov/2021:19:16:29 +0000] "GET /ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1187 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - root [04/Nov/2021:19:16:29 +0000] "GET /remote.php/dav/avatars/root/128.png HTTP/1.1" 200 2219 "-" "Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
77.8.63.167 - - [04/Nov/2021:19:16:29 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:31 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:33 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:35 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:37 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:39 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:41 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
77.8.63.167 - - [04/Nov/2021:19:16:43 +0000] "POST /apps/notify_push/pre_auth HTTP/1.1" 200 793 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"

The problem is, that syncing isn’t instant at all. I tested creating files in my browser and waiting for my client to sync them.
Often I had to wait about 20 seconds which seems to be wrong :unamused:

my docker-compose.yml looks like this:

version: "3.8"
services:
  db:
    image: mariadb:10.5
    container_name: nextcloud_db
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - ./Container-Daten/db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=******************* #change password
      - MYSQL_PASSWORD=*********************  #change password
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
    networks:
      - default

  redis:
    image: redis:alpine
    container_name: nextcloud_redis
    restart: always
    networks:
        - default

  app:
    build:
      context: ./app
      dockerfile: Dockerfile
    container_name: nextcloud_app  ###
    restart: always
    volumes:
      - ./Container-Daten/html:/var/www/html  ###
      - /media/NC2/ncdata:/media/ncdata
      - /Docker:/Docker
    environment:
      - NEXTCLOUD_DATA_DIR=/media/ncdata
      - REDIS_HOST=redis
      #SKIP SETUP PAGE with these variables
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_PASSWORD=*********************  #same db password as upove
      - MYSQL_HOST=db
      - NEXTCLOUD_ADMIN_USER=root
      - NEXTCLOUD_ADMIN_PASSWORD=****************  #change password
      #Email
      - SMTP_HOST=smtp.gmail.com
      - SMTP_SECURE=ssl
      - SMTP_AUTHTYPE=LOGIN
      - SMTP_NAME=server@gmail.com
      - SMTP_PASSWORD=***********************
      - MAIL_FROM_ADDRESS=server
      - MAIL_DOMAIN=gmail.com
      #Networking
      - TRUSTED_PROXIES=172.19.0.2/16 172.20.0.5  #"docker inspect traefik" to get IPAdress and IPPrefixLen
      - OVERWRITEPROTOCOL=https
      - OVERWRITEHOST=cloud.server.de  #set url (cloud.example.com)
      #PHP
      - PHP_MEMORY_LIMIT=23G
      - PHP_UPLOAD_LIMIT=50G
    labels:
      - com.centurylinklabs.watchtower.enable=false
      - "traefik.enable=true"
      - "traefik.http.routers.nextcloud-app.entrypoints=http"
      - "traefik.http.routers.nextcloud-app.rule=Host(`cloud.server.de`)"  #set url (cloud.example.com)
      - "traefik.http.middlewares.nextcloud-app-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.nextcloud-app.middlewares=nextcloud-app-https-redirect"
      - "traefik.http.routers.nextcloud-app-secure.entrypoints=https"
      - "traefik.http.routers.nextcloud-app-secure.rule=Host(`cloud.server.de`)"  #set url (cloud.example.com)
      - "traefik.http.routers.nextcloud-app-secure.tls=true"
      - "traefik.http.routers.nextcloud-app-secure.tls.certresolver=http"
      - "traefik.http.routers.nextcloud-app-secure.service=nextcloud-app"
      - "traefik.http.services.nextcloud-app.loadbalancer.server.port=80"
      - "traefik.docker.network=proxy"
      - "traefik.http.routers.nextcloud-app-secure.middlewares=nextcloud-dav,secHeaders@file"
      - "traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav"
      - "traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/"
      - "traefik.frontend.redirect.replacement: https://$$1/remote.php/dav/"
      - "traefik.http.routers.nextcloud-app.priority=1"
#      - "traefik.http.middlewares.cloud.redirectregex.replacement: 'http$${1}://$${2}/remote.php/dav/'"
#      - "traefik.http.middlewares.cloud.headers.customFrameOptionsValue: 'sameorigin'"
    networks:
      - proxy
      - default
    depends_on:
      - db
      - redis

  collabora:
    image: collabora/code:latest-arm64
    container_name: nextcloud_collabora
    networks:
      - proxy
    cap_add:
      - MKNOD
    expose:
      - 9980
    environment:
      - domain=cloud.server.de  #set url (cloud.example.com)
      - "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
    restart: unless-stopped
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.collabora.entrypoints=http"
      - "traefik.http.routers.collabora.rule=Host(`collabora.server.de`)"  #set url (collabora.example.com)
      - "traefik.http.middlewares.collabora-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.collabora.middlewares=collabora-https-redirect"
      - "traefik.http.routers.collabora-secure.entrypoints=https"
      - "traefik.http.routers.collabora-secure.rule=Host(`collabora.server.de`)"  #set url (collabora.example.com)
      - "traefik.http.routers.collabora-secure.tls=true"
      - "traefik.http.routers.collabora-secure.tls.certresolver=http"
      - "traefik.http.routers.collabora-secure.service=collabora"
      - "traefik.http.services.collabora.loadbalancer.server.port=9980"
      - "traefik.docker.network=proxy"
      - "traefik.http.routers.collabora-secure.middlewares=secHeaders@file"

  dev-nextcloud-notify_push:
    image: nextcloud:apache # use same image as you NC application
    container_name: dev-nextcloud-notify_push
    restart: unless-stopped
    networks:
      - proxy
      - default
    depends_on:
      - db
      - redis
      - app
    volumes:
      - ./Container-Daten/html:/var/www/html
      - ./Container-Daten/html/config:/var/www/html/config:ro
    environment:
      - PORT=7867
      - NEXTCLOUD_URL=http://nextcloud_app/  # NC app container name
    entrypoint: /var/www/html/custom_apps/notify_push/bin/aarch64/notify_push /var/www/html/config/config.php
    labels:
      - traefik.enable=true
      - traefik.protocol=http
      - traefik.docker.network=traefik_proxy
      - traefik.port=7867
      - traefik.http.services.dev-nextcloud_push.loadbalancer.server.port=7867
      - traefik.http.routers.dev-nextcloud_push.priority=2
      - traefik.http.routers.dev-nextcloud_push.middlewares=dev-nextcloud_strip_push
      - traefik.http.routers.dev-nextcloud_push.tls=true
      - traefik.http.routers.dev-nextcloud_push.entryPoints=web-secure
      - traefik.http.routers.dev-nextcloud_push.tls.certresolver=letsencrypt
      # necessary for the notify_push app to work:
      - traefik.http.routers.dev-nextcloud_push.rule=Host(`cloud.server.de`) && PathPrefix(`/push`)
      - traefik.http.middlewares.dev-nextcloud_strip_push.stripprefix.prefixes=/push


networks:
  proxy:
    external: true

and then the setup command was:

docker exec --user www-data dev-nextcloud-app php occ notify_push:setup http://dev-nextcloud-notify_push:7867

Both versions from the tutorial didn’t work which were like this:

docker exec --user www-data dev-nextcloud-app php occ notify_push:setup http://dev-nextcloud-notify_push
and
docker exec --user www-data dev-nextcloud-app php occ notify_push:setup https://${NEXTCLOUD_FQDN}

Examples what happens if I try something else:

# docker exec --user www-data nextcloud_app php occ notify_push:setup http://dev-nextcloud-notify_push
✓ redis is configured
🗴 using unencrypted http for push server is strongly discouraged
🗴 can't connect to push server: cURL error 7: Failed to connect to dev-nextcloud-notify_push port 80: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://dev-nextcloud-notify_push/test/cookie

or

# docker exec --user www-data nextcloud_app php occ notify_push:setup https://cloud.server.de
✓ redis is configured
🗴 push server is not receiving redis messages (received 119275464, got 0)

or

# docker exec --user www-data nextcloud_app php occ notify_push:setup https://cloud.server.de/push
✓ redis is configured
🗴 push server is not receiving redis messages (received 252278142, got 0)

only this works:
# docker exec --user www-data nextcloud_app php occ notify_push:setup http://dev-nextcloud-notify_push:7867
✓ redis is configured
🗴 using unencrypted http for push server is strongly discouraged
✓ push server is receiving redis messages
✓ push server can load mount info from database
✓ push server can connect to the Nextcloud server
✓ push server is a trusted proxy
✓ push server is running the same version as the app
  configuration saved

Any Idea how to see if it’s working/why it’s not working?

in the tutorial you referenced there is a chapter verification… and the very first link below the post is

which shows some additional steps…

Yes, never saw the verification message and only see some propfind messages, as shown in the logs.
But this check seems to show that it’s not working properly:

# docker exec --user www-data nextcloud_app php occ notify_push:metrics
Active connection count: 0
Total connection count: 0
Total database query count: 5
Events received: 759
Messages send: 0

Do you have an Idea where to look for mistakes?
I feel like the server doesn’t connect to the “dev-nextcloud-notify_push” container properly but I have no Idea…

for me it sounds as notify_push works and you setup steps show the server connects to the push service…

active/total connection = 0 sounds little low :wink: in my system I have values… maybe you didn’t setup your reverse proxy (/push suffix) and clients can’t reach the push service?

take a look in your client log file (create debug archive) and browser console (F12) - this might give you some hints

Since I am using traefik my reverse proxy config is in the docker-compose.yml

    labels:
      - traefik.enable=true
      - traefik.protocol=http
      - traefik.docker.network=traefik_proxy  <- This is wrong, changed it to proxy now!
      - traefik.port=7867
      - traefik.http.services.dev-nextcloud_push.loadbalancer.server.port=7867
      - traefik.http.routers.dev-nextcloud_push.priority=2
      - traefik.http.routers.dev-nextcloud_push.middlewares=dev-nextcloud_strip_push
      - traefik.http.routers.dev-nextcloud_push.tls=true
      - traefik.http.routers.dev-nextcloud_push.entryPoints=web-secure
      - traefik.http.routers.dev-nextcloud_push.tls.certresolver=letsencrypt
      # necessary for the notify_push app to work:
      - traefik.http.routers.dev-nextcloud_push.rule=Host(`cloud.server.de`) && PathPrefix(`/push`)
      - traefik.http.middlewares.dev-nextcloud_strip_push.stripprefix.prefixes=/push

In the browser I found something:
image

image

this sound reasonable - the URL exposed to the client is expected to be public URL (the same as your cloud URL but I’m not sure it’s a must)… my browser reports following:

image

the config is little bit wierd as there is triangle (at least for me - I never managed both containers to talk with each other using public URLs, this is the reason for plain http connection in setup).

basically you have four relevant connections:

  • NC application talks to the notify_push
  • notify_push talks to NC application
  • client talks to NC application
  • client talks to notify_push

for the first two, in Docker there is no special requirement - if both containers share the same network you can make them talk plain http without encryption and reverse proxy and using just hostnames, but there is no way a client can join this docker network, so you need to publish both application separately (even if sharing the same domain) and configure the applications to know their public address - because both application build URLs dynamically based on their base address like https://mycloud.tld/files and https://mycloud.tld/push/ or *ws://mycloud.tld/ws/ *

First of all thank you very much for your tutorial and your help now! :slight_smile:

I do understand the connections, thanks for explaining that.

To me it looks like

  • NC application talks to the notify_push
    working
  • notify_push talks to NC application
    working
  • client talks to NC application
    working
  • client talks to notify_push
    not working

Now my question is: Why does my browser even want to connect to dev-nextcloud-notify_push:7867 ?
Or in other words, how can I tell the client to connect to my cloud.server.de domain (to reach dev-nextcloud-notify_push and nexcloud_app)?

These tests work! But that doesn’t mean that my Traefik configuration for dev-nextcloud-notify_push works right?
Is there a way I can test if that’s working correctly?

Or do you have any other Idea what could be the problem with my setup? :thinking:

I did compare my docker-compose with yours and found this difference:

according to your docker-compose file the service name is “app” and hostname is “nextcloud_app” in my setup I use same value for service name and container name, please try “- NEXTCLOUD_URL=http://app/” maybe this change does the trick

the other thing I remember - sometimes notify_push needs a restart of all containers (docker-compose down && docker-compose up -d), sometimes after restart of all containers the started to work…I have no idea why as I didn’t spend time in troubleshooting… maybe you need some specific order or prerequisite…

UPDATE: going through the docs I found X-Forwarded-For header is really important - maybe this is missing in your setup. I have now idea if it’s set by default, at least I don’t see any config where I define it… but my traefic has PASS HOST HEADER = True please double check this as well. This might be where the push app detects it’s real dns name

Hi

I don’t remeber now - it’s a while ago as build this…

Your problem loks like the push container is not aware of its public domain name and tells the client to connect using internal hostname

I assume the test you run must be done without index.php and apps…

https://${NEXTCLOUD_FQDN}/index.php/apps/notify_push/push/test/remote

I will review my config in the evening when I’m on pc. This test shows your taefik works right. The destination where the client connects to comes from one of the containers NC application or push (this must be application as at the first stage the client doesn’t know anything about push)

Yes, this test seems to be more reasonable!
If this works for you then my setup definitely doesn’t work…
This link just pulls up my NC website even if I set priority to 1 for the push container

I have caught that aswell and fixed it already. Didn’t help sadly :confused:

My Traefik shows the same.

I will screen shot my whole Traefik config for you!
notify push app

image


image

nextcloud app


image

traefik.yml:

api:
  dashboard: true
entryPoints:
  http:
    address: ":80"
  https:
    address: ":443"
providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
  file:
    filename: "./dynamic_conf.yml"
certificatesResolvers:
  http:
    acme:
      email: *************************    #### hier eure E-Mail angeben ####
      storage: acme.json
      httpChallenge:
        entryPoint: http
pilot:
    token: "*************************************"

dynamic_conf.yml:

tls:
  options:
    default:
      minVersion: VersionTLS12
      cipherSuites:
        - TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
        - TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
        - TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305
        - TLS_AES_128_GCM_SHA256
        - TLS_AES_256_GCM_SHA384
        - TLS_CHACHA20_POLY1305_SHA256
      curvePreferences:
        - CurveP521
        - CurveP384
      sniStrict: true
http:
  middlewares:
    secHeaders:
      headers:
        browserXssFilter: true
        contentTypeNosniff: true
        frameDeny: true
        sslRedirect: true
        #HSTS Configuration
        stsIncludeSubdomains: true
        stsPreload: true
        stsSeconds: 31536000
        customFrameOptionsValue: "SAMEORIGIN"

Looks like you’re right, I think I am missing that header!
Do you know how I can add this in my config? I am very new to Traefik :grimacing:

if you are new to some product it’s always good to read the docs and follow some tutorials while trying to understand what happens in specific configuration steps…

According to traefik docs passHostHeader is true by default (which matches your push service screenshot)

Pass Host Header
The passHostHeader allows to forward client Host header to server.
By default, passHostHeader is true.

You might add the config option by yourself (and check if switching to “false” is reflected)

- traefik.http.routers.dev-nextcloud_push.passHostHeader=false

I didn’t found anything wrong so far so read your docker-compose file one more time. I found you are routing to push container using network which most likely not exist in you config:

I bet it must be - traefik.docker.network=proxy you used for nextcloud_app and collabora containers. Once you fix this try to run the setup command without port number as shown in example.

PS: I think it would be easier for you if you remove the “dev-” prefix I used in my example (it’s because I have two NC instances running in my docker setup, one is the playground and uses same container names with dev- prefix). Using same value for service name and container name avoids useless thinking which value is right for specific config

 nextcloud_app:
    container_name: nextcloud_app