Nextcloud: Onlyoffice -> Nextcloud Office (Collabora)

This commit is contained in:
Florian Zirker 2022-10-25 14:36:34 +02:00
parent a49c8712a2
commit 946645473c

View file

@ -52,7 +52,7 @@ services:
cron: cron:
image: nextcloud:${NC_MAIN_VERSION}-fpm image: nextcloud:${NC_MAIN_VERSION}
restart: unless-stopped restart: unless-stopped
networks: networks:
- nextcloud - nextcloud
@ -128,32 +128,28 @@ services:
- "docker.group=netxtcloud" - "docker.group=netxtcloud"
office: collabora:
image: onlyoffice/documentserver:latest image: collabora/code
stdin_open: true
tty: true
restart: unless-stopped
networks: networks:
- nextcloud - nextcloud
- web - web
cap_add:
- MKNOD
expose: expose:
- '80' - 9980
- '443' environment:
volumes: - domain=cloud.${DOMAIN}
- ${VOLUMES_PATH}/nextcloud_documents:/var/www/onlyoffice/Data - username=${COLLABORA_ADMIN_USER}
# - ${VOLUMES_PATH}/onlyoffice_log:/var/log/onlyoffice - password=${COLLABORA_ADMIN_PASSWORD}
- "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
restart: unless-stopped
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.office.rule=Host(`office.${DOMAIN}`)" - "traefik.http.routers.collabora.rule=Host(`collabora.${DOMAIN}`)"
- "traefik.http.routers.office.entrypoints=websecure" - "traefik.http.routers.collabora.entrypoints=websecure"
- "traefik.http.routers.office.tls.certresolver=netcup" - "traefik.http.routers.collabora.tls.certresolver=netcup"
- "traefik.http.routers.office.tls.options=intermediate@file" - "traefik.http.routers.collabora.tls.options=intermediate@file"
- "traefik.http.middlewares.officeHeader.headers.customRequestHeaders.X-Forwarded-Proto=https" - "traefik.http.services.collabora.loadbalancer.server.port=9980"
- "traefik.http.middlewares.officeHeader.headers.stsSeconds=15552000"
- "traefik.http.middlewares.officeHeader.headers.stsIncludeSubdomains=true"
- "traefik.http.middlewares.officeHeader.headers.stsPreload=true"
- "traefik.http.middlewares.officeHeader.headers.forceSTSHeader=true"
- "traefik.http.routers.office.middlewares=officeHeader"
- "docker.group=netxtcloud" - "docker.group=netxtcloud"