Client Push für Nextcloud

This commit is contained in:
Florian Zirker 2023-03-29 13:53:45 +02:00
parent 8a399e7976
commit a97bd63a40

View file

@ -22,6 +22,7 @@ services:
- "traefik.http.middlewares.nextcloudHeader.headers.stsIncludeSubdomains=true" - "traefik.http.middlewares.nextcloudHeader.headers.stsIncludeSubdomains=true"
- "traefik.http.middlewares.nextcloudHeader.headers.stsPreload=true" - "traefik.http.middlewares.nextcloudHeader.headers.stsPreload=true"
- "traefik.http.middlewares.nextcloudHeader.headers.forceSTSHeader=true" - "traefik.http.middlewares.nextcloudHeader.headers.forceSTSHeader=true"
- "traefik.http.middlewares.nextcloudHeader.headers.customResponseHeaders.X-Robots-Tag=noindex,nofollow"
- "traefik.http.routers.nextcloud.middlewares=nextcloudHeader" - "traefik.http.routers.nextcloud.middlewares=nextcloudHeader"
- "docker.group=netxtcloud" - "docker.group=netxtcloud"
@ -79,6 +80,33 @@ services:
- "docker.group=netxtcloud" - "docker.group=netxtcloud"
# notify_push aka Client Push aka High Performance Back-end for Nextcloud File
# https://nextcloud.com/blog/nextcloud-faster-than-ever-introducing-files-high-performance-back-end/
push:
image: nextcloud:${NC_MAIN_VERSION}-fpm
restart: unless-stopped
networks:
- web
- nextcloud
volumes:
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html:ro
- ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data:ro
environment:
- PORT=7867
- NEXTCLOUD_URL=http://web
entrypoint: /var/www/html/custom_apps/notify_push/bin/x86_64/notify_push /var/www/html/config/config.php
labels:
- "traefik.enable=true"
- "traefik.http.routers.ncpush.rule=Host(`cloud.${DOMAIN}`) && PathPrefix(`/push`)"
- "traefik.http.routers.ncpush.entrypoints=websecure"
- "traefik.http.routers.ncpush.tls.certresolver=netcup"
- "traefik.http.routers.ncpush.tls.options=intermediate@file"
- "traefik.http.services.ncpush.loadbalancer.server.port=7867"
- "traefik.http.routers.ncpush.middlewares=ncpushstrip"
- "traefik.http.middlewares.ncpushstrip.stripprefix.prefixes=/push"
- "docker.group=proxy"
db: db:
image: mariadb:10 image: mariadb:10
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --skip-innodb-read-only-compressed command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --skip-innodb-read-only-compressed
@ -210,6 +238,9 @@ networks:
web: web:
external: true external: true
nextcloud: nextcloud:
ipam:
config:
- subnet: 172.153.0.0/16 # necessary for the notify_push <-> nextcloud traffic
mariadb: mariadb:
monitoring: monitoring:
external: true external: true