mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 19:59:37 -06:00
87 lines
3.8 KiB
YAML
87 lines
3.8 KiB
YAML
---
|
|
services:
|
|
traefik:
|
|
networks:
|
|
opencloud-net:
|
|
aliases:
|
|
- ${ONLYOFFICE_DOMAIN:-onlyoffice.opencloud.test}
|
|
- ${WOPISERVER_ONLYOFFICE_DOMAIN:-wopiserver-oo.opencloud.test}
|
|
|
|
collaboration-oo:
|
|
image: ${OC_DOCKER_IMAGE:-opencloud-eu/opencloud}:${OC_DOCKER_TAG:-latest}
|
|
networks:
|
|
opencloud-net:
|
|
depends_on:
|
|
opencloud:
|
|
condition: service_started
|
|
onlyoffice:
|
|
condition: service_healthy
|
|
entrypoint:
|
|
- /bin/sh
|
|
command: [ "-c", "opencloud collaboration server" ]
|
|
environment:
|
|
COLLABORATION_GRPC_ADDR: 0.0.0.0:9301
|
|
COLLABORATION_HTTP_ADDR: 0.0.0.0:9300
|
|
MICRO_REGISTRY: "nats-js-kv"
|
|
MICRO_REGISTRY_ADDRESS: "opencloud:9233"
|
|
COLLABORATION_WOPI_SRC: https://${WOPISERVER_ONLYOFFICE_DOMAIN:-wopiserver-oo.opencloud.test}
|
|
COLLABORATION_APP_NAME: "OnlyOffice"
|
|
COLLABORATION_APP_PRODUCT: "OnlyOffice"
|
|
COLLABORATION_APP_ADDR: https://${ONLYOFFICE_DOMAIN:-onlyoffice.opencloud.test}
|
|
COLLABORATION_APP_ICON: https://${ONLYOFFICE_DOMAIN:-onlyoffice.opencloud.test}/web-apps/apps/documenteditor/main/resources/img/favicon.ico
|
|
COLLABORATION_APP_INSECURE: "${INSECURE:-true}"
|
|
COLLABORATION_CS3API_DATAGATEWAY_INSECURE: "${INSECURE:-true}"
|
|
COLLABORATION_LOG_LEVEL: ${LOG_LEVEL:-info}
|
|
COLLABORATION_APP_PROOF_DISABLE: "true"
|
|
OC_URL: https://${OC_DOMAIN:-cloud.opencloud.test}
|
|
volumes:
|
|
# configure the .env file to use own paths instead of docker internal volumes
|
|
- ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.collaboration-oo.entrypoints=https"
|
|
- "traefik.http.routers.collaboration-oo.rule=Host(`${WOPISERVER_ONLYOFFICE_DOMAIN:-wopiserver-oo.opencloud.test}`)"
|
|
- "traefik.http.routers.collaboration-oo.tls.certresolver=http"
|
|
- "traefik.http.routers.collaboration-oo.service=collaboration-oo"
|
|
- "traefik.http.services.collaboration-oo.loadbalancer.server.port=9300"
|
|
logging:
|
|
driver: ${LOG_DRIVER:-local}
|
|
restart: always
|
|
|
|
onlyoffice:
|
|
# if you want to use oo enterprise edition, use: onlyoffice/documentserver-ee:<version>
|
|
# note, you also need to add a volume, see below
|
|
image: onlyoffice/documentserver:8.2.2
|
|
# changelog https://github.com/ONLYOFFICE/DocumentServer/releases
|
|
networks:
|
|
opencloud-net:
|
|
entrypoint:
|
|
- /bin/sh
|
|
- /entrypoint-override.sh
|
|
environment:
|
|
WOPI_ENABLED: "true"
|
|
# self-signed certificates
|
|
USE_UNAUTHORIZED_STORAGE: "${INSECURE:-false}"
|
|
volumes:
|
|
# paths are relative to the main compose file
|
|
- ./config/onlyoffice/entrypoint-override.sh:/entrypoint-override.sh
|
|
- ./config/onlyoffice/local.json:/etc/onlyoffice/documentserver/local.dist.json
|
|
# if you want to use oo enterprise edition, you need to add a volume for the license file
|
|
# for details see: Registering your Enterprise Edition version -->
|
|
# https://helpcenter.onlyoffice.com/installation/docs-enterprise-install-docker.aspx
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.onlyoffice.entrypoints=https"
|
|
- "traefik.http.routers.onlyoffice.rule=Host(`${ONLYOFFICE_DOMAIN:-onlyoffice.opencloud.test}`)"
|
|
- "traefik.http.routers.onlyoffice.tls.certresolver=http"
|
|
- "traefik.http.routers.onlyoffice.service=onlyoffice"
|
|
- "traefik.http.services.onlyoffice.loadbalancer.server.port=80"
|
|
# websockets can't be opened when this is omitted
|
|
- "traefik.http.middlewares.onlyoffice.headers.customrequestheaders.X-Forwarded-Proto=https"
|
|
- "traefik.http.routers.onlyoffice.middlewares=onlyoffice"
|
|
logging:
|
|
driver: ${LOG_DRIVER:-local}
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/hosting/discovery"]
|