2023-12-25 09:19:15 +01:00
|
|
|
version: "3.7"
|
2023-12-24 20:15:46 +01:00
|
|
|
|
|
|
|
services:
|
2023-12-25 09:19:15 +01:00
|
|
|
traefik:
|
|
|
|
image: traefik:v2.9.1
|
|
|
|
networks:
|
2023-12-25 12:17:29 +01:00
|
|
|
ocis-net:
|
|
|
|
aliases:
|
2023-12-25 18:48:42 +01:00
|
|
|
- ${OCIS_DOMAIN}
|
|
|
|
- ${WOPISERVER_DOMAIN}
|
|
|
|
- ${COLLABORA_DOMAIN}
|
|
|
|
- ${ONLYOFFICE_DOMAIN}
|
2023-12-25 09:19:15 +01:00
|
|
|
command:
|
2023-12-25 12:17:29 +01:00
|
|
|
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
|
|
|
# letsencrypt configuration
|
2023-12-25 18:48:42 +01:00
|
|
|
- "--certificatesResolvers.http.acme.email=${TRAEFIK_ACME_MAIL}"
|
2023-12-25 12:17:29 +01:00
|
|
|
- "--certificatesResolvers.http.acme.storage=/certs/acme.json"
|
|
|
|
- "--certificatesResolvers.http.acme.httpChallenge.entryPoint=http"
|
|
|
|
# enable dashboard
|
|
|
|
- "--api.dashboard=true"
|
|
|
|
# define entrypoints
|
|
|
|
- "--entryPoints.http.address=:80"
|
|
|
|
- "--entryPoints.http.http.redirections.entryPoint.to=https"
|
|
|
|
- "--entryPoints.http.http.redirections.entryPoint.scheme=https"
|
|
|
|
- "--entryPoints.https.address=:443"
|
|
|
|
# docker provider (get configuration from container labels)
|
|
|
|
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
|
|
|
- "--providers.docker.exposedByDefault=false"
|
|
|
|
# access log
|
|
|
|
- "--accessLog=true"
|
|
|
|
- "--accessLog.format=json"
|
|
|
|
- "--accessLog.fields.headers.names.X-Request-Id=keep"
|
2023-12-24 20:15:46 +01:00
|
|
|
ports:
|
2023-12-25 09:19:15 +01:00
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2023-12-24 20:15:46 +01:00
|
|
|
volumes:
|
2023-12-25 12:17:29 +01:00
|
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
- "certs:/certs"
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2023-12-25 10:00:11 +01:00
|
|
|
deploy:
|
|
|
|
labels:
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.enable=${TRAEFIK_DASHBOARD}"
|
|
|
|
- "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_BASIC_AUTH_USERS}" # defaults to admin:admin
|
2023-12-25 12:17:29 +01:00
|
|
|
- "traefik.http.routers.traefik.entrypoints=https"
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.http.routers.traefik.rule=Host(`${TRAEFIK_DOMAIN}`)"
|
2023-12-25 12:17:29 +01:00
|
|
|
- "traefik.http.routers.traefik.middlewares=traefik-auth"
|
|
|
|
- "traefik.http.routers.traefik.tls.certresolver=http"
|
|
|
|
- "traefik.http.routers.traefik.service=api@internal"
|
2023-12-25 10:00:11 +01:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role==manager
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
2023-12-25 09:19:15 +01:00
|
|
|
|
|
|
|
ocis:
|
2023-12-25 11:47:11 +01:00
|
|
|
image: owncloud/ocis:latest
|
2023-12-25 09:19:15 +01:00
|
|
|
networks:
|
2023-12-25 11:47:11 +01:00
|
|
|
- ocis-net
|
|
|
|
entrypoint:
|
|
|
|
- /bin/sh
|
|
|
|
command: ["-c", "ocis init || true; ocis server"]
|
2023-12-24 20:15:46 +01:00
|
|
|
environment:
|
2023-12-25 10:00:11 +01:00
|
|
|
OCIS_URL: https://${OCIS_DOMAIN}
|
|
|
|
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL}
|
|
|
|
OCIS_LOG_COLOR: ${OCIS_LOG_COLOR}
|
|
|
|
PROXY_TLS: "false"
|
2023-12-25 09:19:15 +01:00
|
|
|
SETTINGS_GRPC_ADDR: 0.0.0.0:9191
|
2023-12-25 10:00:11 +01:00
|
|
|
OCIS_INSECURE: ${OCIS_INSECURE}
|
|
|
|
PROXY_ENABLE_BASIC_AUTH: ${PROXY_ENABLE_BASIC_AUTH}
|
|
|
|
IDM_ADMIN_PASSWORD: ${ADMIN_PASSWORD}
|
|
|
|
IDM_CREATE_DEMO_USERS: ${DEMO_USERS}
|
2023-12-25 12:17:29 +01:00
|
|
|
# fulltext search
|
|
|
|
SEARCH_EXTRACTOR_TYPE: tika
|
|
|
|
SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://tika:9998
|
|
|
|
FRONTEND_FULL_TEXT_SEARCH_ENABLED: "true"
|
|
|
|
# make the registry available to the app provider containers
|
|
|
|
MICRO_REGISTRY: "mdns"
|
2023-12-24 20:15:46 +01:00
|
|
|
volumes:
|
2023-12-25 12:17:29 +01:00
|
|
|
- ./config/ocis/app-registry.yaml:/etc/ocis/app-registry.yaml
|
|
|
|
- ocis-config:/etc/ocis
|
|
|
|
- ocis-data:/var/lib/ocis
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.ocis.entrypoints=https"
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
|
2023-12-25 12:17:29 +01:00
|
|
|
- "traefik.http.routers.ocis.tls.certresolver=http"
|
|
|
|
- "traefik.http.routers.ocis.service=ocis"
|
|
|
|
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2023-12-25 10:00:11 +01:00
|
|
|
deploy:
|
|
|
|
labels:
|
2023-12-25 11:47:11 +01:00
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.ocis.entrypoints=https"
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.http.routers.ocis.rule=Host(`${OCIS_DOMAIN}`)"
|
2023-12-25 11:47:11 +01:00
|
|
|
- "traefik.http.routers.ocis.tls.certresolver=http"
|
2023-12-25 12:17:29 +01:00
|
|
|
- "traefik.http.routers.ocis.service=ocis"
|
2023-12-25 11:47:11 +01:00
|
|
|
- "traefik.http.services.ocis.loadbalancer.server.port=9200"
|
2023-12-25 10:00:11 +01:00
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
2024-02-03 20:33:30 +01:00
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
2023-12-24 20:15:46 +01:00
|
|
|
|
2023-12-25 11:47:11 +01:00
|
|
|
ocis-appprovider-collabora:
|
|
|
|
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
|
|
|
networks:
|
|
|
|
- ocis-net
|
|
|
|
command: app-provider server
|
|
|
|
environment:
|
|
|
|
# use the internal service name of the gateway
|
2023-12-25 18:48:42 +01:00
|
|
|
REVA_GATEWAY: ${REVA_GATEWAY}
|
2023-12-25 11:47:11 +01:00
|
|
|
APP_PROVIDER_GRPC_ADDR: 0.0.0.0:9164
|
|
|
|
# configure the service name to avoid collision with onlyoffice
|
|
|
|
APP_PROVIDER_SERVICE_NAME: app-provider-collabora
|
|
|
|
# use the internal service name
|
|
|
|
APP_PROVIDER_EXTERNAL_ADDR: com.owncloud.api.app-provider-collabora
|
|
|
|
APP_PROVIDER_DRIVER: wopi
|
|
|
|
APP_PROVIDER_WOPI_APP_NAME: Collabora
|
2023-12-25 18:48:42 +01:00
|
|
|
APP_PROVIDER_WOPI_APP_ICON_URI: https://${COLLABORA_DOMAIN}/favicon.ico
|
|
|
|
APP_PROVIDER_WOPI_APP_URL: https://${COLLABORA_DOMAIN}
|
|
|
|
APP_PROVIDER_WOPI_INSECURE: "${INSECURE}"
|
|
|
|
APP_PROVIDER_WOPI_WOPI_SERVER_EXTERNAL_URL: https://${WOPISERVER_DOMAIN}
|
|
|
|
APP_PROVIDER_WOPI_FOLDER_URL_BASE_URL: https://${OCIS_DOMAIN}
|
|
|
|
JWT_SECRET: ${WOPI_JWT_SECRET}
|
2023-12-25 11:47:11 +01:00
|
|
|
# share the registry with the ocis container
|
|
|
|
MICRO_REGISTRY: "mdns"
|
|
|
|
volumes:
|
|
|
|
- ocis-config:/etc/ocis
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2024-02-03 20:33:30 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
2023-12-25 11:47:11 +01:00
|
|
|
|
|
|
|
ocis-appprovider-onlyoffice:
|
|
|
|
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
|
|
|
networks:
|
|
|
|
- ocis-net
|
|
|
|
user: "0" # needed for apk add in entrypoint script
|
|
|
|
entrypoint:
|
|
|
|
- /bin/sh
|
|
|
|
- /entrypoint-override.sh
|
|
|
|
environment:
|
2023-12-25 18:48:42 +01:00
|
|
|
OCIS_URL: https://${OCIS_DOMAIN}
|
2023-12-25 12:17:29 +01:00
|
|
|
OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-info}
|
|
|
|
OCIS_LOG_COLOR: "${OCIS_LOG_COLOR:-false}"
|
|
|
|
PROXY_TLS: "false" # do not use SSL between Traefik and oCIS
|
2023-12-25 11:47:11 +01:00
|
|
|
# use the internal service name of the gateway
|
2023-12-25 18:48:42 +01:00
|
|
|
REVA_GATEWAY: ${REVA_GATEWAY}
|
2023-12-25 11:47:11 +01:00
|
|
|
APP_PROVIDER_GRPC_ADDR: 0.0.0.0:9164
|
|
|
|
# configure the service name to avoid collision with collabora
|
|
|
|
APP_PROVIDER_SERVICE_NAME: app-provider-onlyoffice
|
|
|
|
# use the internal service name
|
|
|
|
APP_PROVIDER_EXTERNAL_ADDR: com.owncloud.api.app-provider-onlyoffice
|
|
|
|
APP_PROVIDER_DRIVER: wopi
|
|
|
|
APP_PROVIDER_WOPI_APP_NAME: OnlyOffice
|
2023-12-25 18:48:42 +01:00
|
|
|
APP_PROVIDER_WOPI_APP_ICON_URI: https://${ONLYOFFICE_DOMAIN}/web-apps/apps/documenteditor/main/resources/img/favicon.ico
|
|
|
|
APP_PROVIDER_WOPI_APP_URL: https://${ONLYOFFICE_DOMAIN}
|
2023-12-25 11:47:11 +01:00
|
|
|
APP_PROVIDER_WOPI_INSECURE: "${INSECURE:-false}"
|
2023-12-25 18:48:42 +01:00
|
|
|
APP_PROVIDER_WOPI_WOPI_SERVER_EXTERNAL_URL: https://${WOPISERVER_DOMAIN}
|
|
|
|
APP_PROVIDER_WOPI_FOLDER_URL_BASE_URL: https://${OCIS_DOMAIN}
|
2023-12-25 11:47:11 +01:00
|
|
|
# share the registry with the ocis container
|
|
|
|
MICRO_REGISTRY: "mdns"
|
|
|
|
volumes:
|
|
|
|
- ./config/ocis-appprovider-onlyoffice/entrypoint-override.sh:/entrypoint-override.sh
|
|
|
|
- ocis-config:/etc/ocis
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2024-02-03 20:33:30 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
2023-12-25 11:47:11 +01:00
|
|
|
|
|
|
|
wopiserver:
|
|
|
|
image: cs3org/wopiserver:${WOPISERVER_DOCKER_TAG:-v10.2.2}
|
|
|
|
networks:
|
|
|
|
- ocis-net
|
|
|
|
entrypoint:
|
|
|
|
- /bin/sh
|
|
|
|
- /entrypoint-override.sh
|
|
|
|
environment:
|
2023-12-25 18:48:42 +01:00
|
|
|
WOPISERVER_INSECURE: "${INSECURE}"
|
|
|
|
WOPISECRET: ${WOPI_JWT_SECRET}
|
|
|
|
WOPISERVER_DOMAIN: ${WOPISERVER_DOMAIN}
|
2023-12-25 11:47:11 +01:00
|
|
|
volumes:
|
|
|
|
- ./config/wopiserver/entrypoint-override.sh:/entrypoint-override.sh
|
|
|
|
- ./config/wopiserver/wopiserver.conf.dist:/etc/wopi/wopiserver.conf.dist
|
|
|
|
- wopi-recovery:/var/spool/wopirecovery
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.wopiserver.entrypoints=https"
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.http.routers.wopiserver.rule=Host(`${WOPISERVER_DOMAIN}`)"
|
2023-12-25 11:47:11 +01:00
|
|
|
- "traefik.http.routers.wopiserver.tls.certresolver=http"
|
|
|
|
- "traefik.http.routers.wopiserver.service=wopiserver"
|
|
|
|
- "traefik.http.services.wopiserver.loadbalancer.server.port=8880"
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2024-02-03 20:33:30 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
2023-12-25 11:47:11 +01:00
|
|
|
|
|
|
|
collabora:
|
|
|
|
image: collabora/code:23.05.5.2.1
|
|
|
|
networks:
|
|
|
|
- ocis-net
|
|
|
|
environment:
|
2023-12-25 18:48:42 +01:00
|
|
|
aliasgroup1: https://${WOPISERVER_DOMAIN}:443
|
2023-12-25 11:47:11 +01:00
|
|
|
DONT_GEN_SSL_CERT: "YES"
|
2023-12-25 18:48:42 +01:00
|
|
|
extra_params: --o:ssl.enable=false --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=${OCIS_DOMAIN}
|
2023-12-25 11:47:11 +01:00
|
|
|
username: ${COLLABORA_ADMIN_USER}
|
|
|
|
password: ${COLLABORA_ADMIN_PASSWORD}
|
|
|
|
cap_add:
|
|
|
|
- MKNOD
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.collabora.entrypoints=https"
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.http.routers.collabora.rule=Host(`${COLLABORA_DOMAIN}`)"
|
2023-12-25 11:47:11 +01:00
|
|
|
- "traefik.http.routers.collabora.tls.certresolver=http"
|
|
|
|
- "traefik.http.routers.collabora.service=collabora"
|
|
|
|
- "traefik.http.services.collabora.loadbalancer.server.port=9980"
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2024-02-03 20:33:30 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
2023-12-25 11:47:11 +01:00
|
|
|
|
|
|
|
onlyoffice:
|
|
|
|
image: onlyoffice/documentserver:7.5.0
|
|
|
|
networks:
|
|
|
|
- ocis-net
|
|
|
|
entrypoint:
|
|
|
|
- /bin/sh
|
|
|
|
- /entrypoint-override.sh
|
|
|
|
environment:
|
|
|
|
WOPI_ENABLED: "true"
|
2023-12-25 18:48:42 +01:00
|
|
|
USE_UNAUTHORIZED_STORAGE: "${INSECURE}" # self signed certificates
|
2023-12-25 11:47:11 +01:00
|
|
|
volumes:
|
|
|
|
- ./config/onlyoffice/entrypoint-override.sh:/entrypoint-override.sh
|
|
|
|
- ./config/onlyoffice/local.json:/etc/onlyoffice/documentserver/local.dist.json
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.onlyoffice.entrypoints=https"
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.http.routers.onlyoffice.rule=Host(`${ONLYOFFICE_DOMAIN}`)"
|
2023-12-25 11:47:11 +01:00
|
|
|
- "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 ommitted
|
|
|
|
- "traefik.http.middlewares.onlyoffice.headers.customrequestheaders.X-Forwarded-Proto=https"
|
|
|
|
- "traefik.http.routers.onlyoffice.middlewares=onlyoffice"
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2024-02-03 20:33:30 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
2023-12-25 11:47:11 +01:00
|
|
|
|
|
|
|
tika:
|
|
|
|
image: ${TIKA_IMAGE:-apache/tika:latest-full}
|
|
|
|
networks:
|
|
|
|
- ocis-net
|
|
|
|
|
|
|
|
inbucket:
|
|
|
|
image: inbucket/inbucket
|
|
|
|
networks:
|
2023-12-25 11:48:31 +01:00
|
|
|
- ocis-net
|
2023-12-25 11:47:11 +01:00
|
|
|
entrypoint:
|
|
|
|
- /bin/sh
|
|
|
|
command: [ "-c", "apk add openssl; openssl req -subj '/CN=inbucket.test' -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/server.key -out /tmp/server.crt; /start-inbucket.sh" ]
|
|
|
|
environment:
|
|
|
|
INBUCKET_SMTP_TLSENABLED: "true"
|
|
|
|
INBUCKET_SMTP_TLSPRIVKEY: /tmp/server.key
|
|
|
|
INBUCKET_SMTP_TLSCERT: /tmp/server.crt
|
|
|
|
INBUCKET_STORAGE_MAILBOXMSGCAP: 1000
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.inbucket.entrypoints=https"
|
2023-12-25 18:48:42 +01:00
|
|
|
- "traefik.http.routers.inbucket.rule=Host(`${INBUCKET_DOMAIN}`)"
|
2023-12-25 11:47:11 +01:00
|
|
|
- "traefik.http.routers.inbucket.tls.certresolver=http"
|
|
|
|
- "traefik.http.routers.inbucket.service=inbucket"
|
|
|
|
- "traefik.http.services.inbucket.loadbalancer.server.port=9000"
|
|
|
|
logging:
|
|
|
|
driver: "local"
|
2024-02-03 20:33:30 +01:00
|
|
|
deploy:
|
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
2023-12-25 11:47:11 +01:00
|
|
|
|
2023-12-24 20:15:46 +01:00
|
|
|
|
2023-12-25 11:51:27 +01:00
|
|
|
networks:
|
2023-12-25 11:52:07 +01:00
|
|
|
ocis-net:
|
|
|
|
external: true
|
2023-12-24 20:15:46 +01:00
|
|
|
volumes:
|
2023-12-25 12:18:40 +01:00
|
|
|
certs:
|
2023-12-25 12:19:08 +01:00
|
|
|
ocis-data:
|
2023-12-25 11:47:11 +01:00
|
|
|
ocis-config:
|
|
|
|
wopi-recovery:
|