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