use onlyoffice instead of collabora

This commit is contained in:
root 2022-09-14 01:04:20 +02:00
parent ace9ab6887
commit 656744bdf8

View File

@ -7,6 +7,10 @@ volumes:
name: docker_nextcloud name: docker_nextcloud
nextcloud: nextcloud:
name: docker_nextcloud-conf name: docker_nextcloud-conf
onlyoffice-data:
name: docker_onlyoffice-data
# onlyoffice-log:
# name: docker_onlyoffice-log
networks: networks:
nextcloud: nextcloud:
@ -20,7 +24,7 @@ services:
container_name: nextcloud-app container_name: nextcloud-app
restart: unless-stopped restart: unless-stopped
extra_hosts : extra_hosts :
code.oasis21.org : 172.16.7.10 office.oasis21.org : 172.16.7.10
volumes: volumes:
- nextcloud:/var/www/html - nextcloud:/var/www/html
- nextcloud-data:/var/www/html/data - nextcloud-data:/var/www/html/data
@ -71,29 +75,52 @@ services:
- "TZ=Europe/Paris" - "TZ=Europe/Paris"
restart: unless-stopped restart: unless-stopped
collabora: #collabora:
image: collabora/code:22.05.3.1.1 # image: collabora/code:22.05.3.1.1
container_name: collabora # container_name: collabora
# extra_hosts :
# cloud.oasis21.org : 172.16.7.10
# environment:
# - "TZ=Europe/Paris"
# - aliasgroup1=cloud.oasis21.org
# - DONT_GEN_SSL_CERT=1
# - serveur_name=code.oasis21.org
# - "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
# networks:
# - nextcloud
# - proxy
# env_file: ./secrets/librezo.secrets
# cap_add:
# - MKNOD
# restart:
# unless-stopped
# labels:
# traefik.http.routers.collabora.entrypoints: websecure
# traefik.http.routers.collabora.rule: Host(`code.oasis21.org`)
# traefik.http.services.collabora.loadbalancer.server.port: 9980
# traefik.http.routers.collabora.middlewares: allowFrameAndCORS@file
# traefik.enable: true
onlyoffice:
container_name: onlyoffice
image: onlyoffice/documentserver:7.1.1.23
restart: unless-stopped
extra_hosts : extra_hosts :
cloud.oasis21.org : 172.16.7.10 cloud.oasis21.org : 172.16.7.11
environment: environment:
- "TZ=Europe/Paris" - JWT_ENABLED=false
- aliasgroup1=cloud.oasis21.org volumes:
- DONT_GEN_SSL_CERT=1 - onlyoffice-data:/var/www/onlyoffice/Data
- serveur_name=code.oasis21.org #- onlyoffice-log:/var/log/onlyoffice
- "extra_params=--o:ssl.enable=false --o:ssl.termination=true" labels:
traefik.http.routers.onlyoffice.entrypoints: websecure
traefik.http.routers.onlyoffice.rule: Host(`office.oasis21.org`)
traefik.http.services.onlyoffice.loadbalancer.server.port: 80
traefik.enable: true
traefik.http.routers.onlyoffice.middlewares: allowFrameAndCORS@file, onlyoffice-sslheaders
traefik.http.middlewares.onlyoffice-sslheaders.headers.customrequestheaders.X-Forwarded-Proto: "https"
networks: networks:
- nextcloud - nextcloud
- proxy - proxy
env_file: ./secrets/librezo.secrets
cap_add:
- MKNOD
restart:
unless-stopped
labels:
traefik.http.routers.collabora.entrypoints: websecure
traefik.http.routers.collabora.rule: Host(`code.oasis21.org`)
traefik.http.services.collabora.loadbalancer.server.port: 9980
traefik.http.routers.collabora.middlewares: allowFrameAndCORS@file
traefik.enable: true