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
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?