mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-12-06 01:43:12 +08:00
Compare commits
1 Commits
stable-9.1
...
radicale-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f21b38d46 |
64
.env.example
64
.env.example
@@ -10,24 +10,24 @@ INSECURE=true
|
|||||||
## Features ##
|
## Features ##
|
||||||
# The following variable is a convenience variable to enable or disable features of this compose project.
|
# The following variable is a convenience variable to enable or disable features of this compose project.
|
||||||
# Example: if you want to use traefik and letsencrypt, you can set the variable to
|
# Example: if you want to use traefik and letsencrypt, you can set the variable to
|
||||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:traefik/opencloud.yml
|
#COMPOSE_FILE=docker-compose.yml:traefik/opencloud.yml
|
||||||
# This enables you to just run `docker compose up -d` and the compose files will be added to the stack.
|
# This enables you to just run `docker compose up -d` and the compose files will be added to the stack.
|
||||||
# As alternative approach you can run `docker compose -f docker-compose.yml -f docker-compose.traefik.yml up -d`
|
# As alternative approach you can run `docker compose -f docker-compose.yml -f docker-compose.traefik.yml up -d`
|
||||||
# Default: OpenCloud and Collabora with traefik and letsencypt
|
# Default: OpenCloud and Collabora with traefik and letsencypt
|
||||||
# This needs DNS entries for the domain names used in the .env file.
|
# This needs DNS entries for the domain names used in the .env file.
|
||||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml
|
#COMPOSE_FILE=docker-compose.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml
|
||||||
# If you want to use the external proxy, you can use the following combination.
|
# If you want to use the external proxy, you can use the following combination.
|
||||||
# DNS entries and certificates need to be managed by the external environment.
|
# DNS entries and certificates need to be managed by the external environment.
|
||||||
# The domain names need to be entered into the .env file.
|
# The domain names need to be entered into the .env file.
|
||||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:external-proxy/opencloud.yml:external-proxy/collabora.yml
|
#COMPOSE_FILE=docker-compose.yml:weboffice/collabora.yml:external-proxy/opencloud.yml:external-proxy/collabora.yml
|
||||||
# Keycloak Shared User Directory
|
# Keycloak Shared User Directory
|
||||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml
|
#COMPOSE_FILE=docker-compose.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml
|
||||||
# External IDP
|
# External IDP
|
||||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/external-idp.yml
|
#COMPOSE_FILE=docker-compose.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/external-idp.yml
|
||||||
# Euro Office with traefik and letsencrypt
|
# Euro Office with traefik and letsencrypt
|
||||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/euro-office.yml:traefik/opencloud.yml:traefik/euro-office.yml
|
#COMPOSE_FILE=docker-compose.yml:weboffice/euro-office.yml:traefik/opencloud.yml:traefik/euro-office.yml
|
||||||
# Euro Office with external proxy (Nginx, Caddy, etc.)
|
# Euro Office with external proxy (Nginx, Caddy, etc.)
|
||||||
#COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/euro-office.yml:external-proxy/opencloud.yml:external-proxy/euro-office.yml
|
#COMPOSE_FILE=docker-compose.yml:weboffice/euro-office.yml:external-proxy/opencloud.yml:external-proxy/euro-office.yml
|
||||||
|
|
||||||
## Traefik Settings ##
|
## Traefik Settings ##
|
||||||
# Note: Traefik is always enabled and can't be disabled.
|
# Note: Traefik is always enabled and can't be disabled.
|
||||||
@@ -87,7 +87,7 @@ TRAEFIK_LOG_LEVEL=
|
|||||||
# For production releases: "opencloudeu/opencloud"
|
# For production releases: "opencloudeu/opencloud"
|
||||||
# For rolling releases: "opencloudeu/opencloud-rolling"
|
# For rolling releases: "opencloudeu/opencloud-rolling"
|
||||||
# Defaults to production if not set otherwise
|
# Defaults to production if not set otherwise
|
||||||
OC_DOCKER_IMAGE=opencloudeu/opencloud
|
OC_DOCKER_IMAGE=opencloudeu/opencloud-rolling
|
||||||
# The openCloud container version.
|
# The openCloud container version.
|
||||||
# Defaults to the latest version-tag. Use git pull to update.
|
# Defaults to the latest version-tag. Use git pull to update.
|
||||||
OC_DOCKER_TAG=
|
OC_DOCKER_TAG=
|
||||||
@@ -210,27 +210,6 @@ START_ADDITIONAL_SERVICES=""
|
|||||||
# like advanced OCR or specific image processing capabilities.
|
# like advanced OCR or specific image processing capabilities.
|
||||||
TIKA_IMAGE=
|
TIKA_IMAGE=
|
||||||
|
|
||||||
### imagor Preview Generator ###
|
|
||||||
# imagor renders previews through libvips, which reads formats the built-in
|
|
||||||
# generator does not, heic, heif and avif among them.
|
|
||||||
# Needs OpenCloud 9.0.0 or newer.
|
|
||||||
# Enable it by adding thumbnails/imagor.yml to the COMPOSE_FILE variable or by
|
|
||||||
# using the following command:
|
|
||||||
# docker compose -f docker-compose.yml -f thumbnails/imagor.yml up -d
|
|
||||||
# Docker image to use for the imagor container. Defaults to "shumc/imagor".
|
|
||||||
# "ghcr.io/cshum/imagor-magick" adds ImageMagick for formats libvips does not read,
|
|
||||||
# PSD, XCF and BMP among them. Slower, more memory and a larger attack surface,
|
|
||||||
# imagor recommends the standard image for most setups.
|
|
||||||
#IMAGOR_DOCKER_IMAGE=
|
|
||||||
# Docker tag to pull for the imagor container. Defaults to "1.9.14".
|
|
||||||
#IMAGOR_DOCKER_TAG=
|
|
||||||
# Largest source image imagor accepts, in bytes. Defaults to "50000000".
|
|
||||||
#IMAGOR_MAX_SOURCE_SIZE=
|
|
||||||
# Mime types previews are announced and attempted for on top of the built-in list,
|
|
||||||
# comma separated. A type imagor cannot read answers 404.
|
|
||||||
# Defaults to "image/heic,image/heif,image/avif,image/heic-sequence,image/heif-sequence".
|
|
||||||
#THUMBNAILS_ADDITIONAL_SOURCE_TYPES=
|
|
||||||
|
|
||||||
### IMPORTANT Note for Online Office Apps ###
|
### IMPORTANT Note for Online Office Apps ###
|
||||||
# To avoid app interlocking issues, you should select only one app to be active/configured.
|
# To avoid app interlocking issues, you should select only one app to be active/configured.
|
||||||
# This is due the fact that there is currently no app interlocking for the same file and one
|
# This is due the fact that there is currently no app interlocking for the same file and one
|
||||||
@@ -404,34 +383,9 @@ KC_DB_PASSWORD=
|
|||||||
# - ./config/ldap/ldif/30_demo_users.ldif:/ldifs/30_demo_users.ldif
|
# - ./config/ldap/ldif/30_demo_users.ldif:/ldifs/30_demo_users.ldif
|
||||||
# - ./config/ldap/ldif/40_demo_groups.ldif:/ldifs/40_demo_groups.ldif
|
# - ./config/ldap/ldif/40_demo_groups.ldif:/ldifs/40_demo_groups.ldif
|
||||||
#
|
#
|
||||||
# Then add it to: COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml:custom/ldap-keycloak-demo-users.yml
|
# Then add it to: COMPOSE_FILE=docker-compose.yml:weboffice/collabora.yml:traefik/opencloud.yml:traefik/collabora.yml:idm/ldap-keycloak.yml:traefik/ldap-keycloak.yml:custom/ldap-keycloak-demo-users.yml
|
||||||
# WARNING: Do not use in production.
|
# WARNING: Do not use in production.
|
||||||
|
|
||||||
### Yjs Settings ###
|
|
||||||
# The yjs server relays updates between users editing the same file.
|
|
||||||
# It is enabled by default via yjs/yjs.yml in the COMPOSE_FILE variable.
|
|
||||||
# The browser reaches it under https://{OC_DOMAIN}/yjs, the OpenCloud proxy forwards it.
|
|
||||||
# Docker image to use for the yjs container.
|
|
||||||
#YJS_DOCKER_IMAGE=opencloudeu/yjs
|
|
||||||
# Docker tag to pull for the yjs container.
|
|
||||||
#YJS_DOCKER_TAG=
|
|
||||||
# URL the yjs server uses to reach OpenCloud. Defaults to "http://opencloud:9200".
|
|
||||||
#YJS_OPENCLOUD_URL=
|
|
||||||
# Grace period in milliseconds for a graceful shutdown. Defaults to "15000".
|
|
||||||
# Keep it below the stop_grace_period set in yjs/yjs.yml.
|
|
||||||
#YJS_SHUTDOWN_GRACE_PERIOD_MS=
|
|
||||||
|
|
||||||
### Guest Links Settings ###
|
|
||||||
# Guest links let users share files with an email address that has no account.
|
|
||||||
# The guest gets the link and later a PIN by email, so this needs a working
|
|
||||||
# notifications service: add "notifications" to START_ADDITIONAL_SERVICES and
|
|
||||||
# set at least SMTP_HOST, SMTP_PORT and SMTP_SENDER in the SMTP settings above.
|
|
||||||
# Existing installations: add the auth-guest service account to the config by
|
|
||||||
# running "opencloud init --diff" and applying the patch it writes to
|
|
||||||
# /etc/opencloud/opencloud.config.patch.
|
|
||||||
# Defaults to "false"
|
|
||||||
#OC_ENABLE_GUEST_LINKS=true
|
|
||||||
|
|
||||||
### Radicale Setting ###
|
### Radicale Setting ###
|
||||||
# Radicale is a small open-source CalDAV (calendars, to-do lists) and CardDAV (contacts) server.
|
# Radicale is a small open-source CalDAV (calendars, to-do lists) and CardDAV (contacts) server.
|
||||||
# When enabled OpenCloud is configured as a reverse proxy for Radicale, providing all authenticated
|
# When enabled OpenCloud is configured as a reverse proxy for Radicale, providing all authenticated
|
||||||
|
|||||||
52
README.md
52
README.md
@@ -15,7 +15,6 @@ OpenCloud Compose offers a modular approach to deploying OpenCloud with several
|
|||||||
- **Euro Office** integration for document editing
|
- **Euro Office** integration for document editing
|
||||||
- **Keycloak and LDAP** integration for centralized identity management
|
- **Keycloak and LDAP** integration for centralized identity management
|
||||||
- **Full text search** with Apache Tika for content extraction and metadata analysis
|
- **Full text search** with Apache Tika for content extraction and metadata analysis
|
||||||
- **HEIC, HEIF and AVIF previews** with imagor
|
|
||||||
- **Monitoring** with metrics endpoints for observability and performance monitoring
|
- **Monitoring** with metrics endpoints for observability and performance monitoring
|
||||||
- **Radicale** integration for Calendar and Contacts
|
- **Radicale** integration for Calendar and Contacts
|
||||||
- **ClamAV** antivirus scanning with ClamAV
|
- **ClamAV** antivirus scanning with ClamAV
|
||||||
@@ -196,48 +195,6 @@ By default, OpenCloud Compose uses `apache/tika:latest` which provides:
|
|||||||
|
|
||||||
The base variant is recommended for most use cases. If you need advanced features like specialized OCR processing or specific image format support, you can override the image by setting `TIKA_IMAGE=apache/tika:latest-full` in your `.env` file.
|
The base variant is recommended for most use cases. If you need advanced features like specialized OCR processing or specific image format support, you can override the image by setting `TIKA_IMAGE=apache/tika:latest-full` in your `.env` file.
|
||||||
|
|
||||||
### With imagor Previews
|
|
||||||
|
|
||||||
The OpenCloud image ships no libheif on purpose, so a heic, heif or avif is refused with `406 unreadable image`. imagor reads those formats. Enable it using either method:
|
|
||||||
|
|
||||||
> **Version Requirement**: This setup needs OpenCloud 9.0.0 or newer.
|
|
||||||
|
|
||||||
Using `-f` flags:
|
|
||||||
```bash
|
|
||||||
docker compose -f docker-compose.yml -f thumbnails/imagor.yml -f traefik/opencloud.yml up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
Or by setting in `.env`:
|
|
||||||
```
|
|
||||||
COMPOSE_FILE=docker-compose.yml:thumbnails/imagor.yml:traefik/opencloud.yml
|
|
||||||
```
|
|
||||||
|
|
||||||
This setup includes:
|
|
||||||
- imagor as the preview generator OpenCloud posts source images to
|
|
||||||
- Previews for heic, heif and avif files, including image sequences, in the file list and the preview app
|
|
||||||
- imagor on an internal network without a route to the outside, with a read-only filesystem and no capabilities
|
|
||||||
|
|
||||||
Set `THUMBNAILS_ADDITIONAL_SOURCE_TYPES` in `.env` to announce previews for further formats imagor reads.
|
|
||||||
|
|
||||||
**ImageMagick Variant:**
|
|
||||||
libvips does not read PSD, XCF, BMP and some legacy formats. The `ghcr.io/cshum/imagor-magick` image adds ImageMagick for those. It is slower, needs more memory and widens the attack surface, so imagor recommends the standard image for most setups. To use it anyway, set `IMAGOR_DOCKER_IMAGE=ghcr.io/cshum/imagor-magick` in your `.env` file and add the mime types to `THUMBNAILS_ADDITIONAL_SOURCE_TYPES`.
|
|
||||||
|
|
||||||
### With the Yjs Server
|
|
||||||
|
|
||||||
The yjs server enables collaborative editing of files. The browser connects to `wss://{OC_DOMAIN}/yjs`. The OpenCloud proxy forwards this route to the yjs container, so no extra DNS entry or port is needed.
|
|
||||||
|
|
||||||
Using `-f` flags:
|
|
||||||
```bash
|
|
||||||
docker compose -f docker-compose.yml -f yjs/yjs.yml -f traefik/opencloud.yml up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
Or by setting in `.env`:
|
|
||||||
```
|
|
||||||
COMPOSE_FILE=docker-compose.yml:yjs/yjs.yml:traefik/opencloud.yml
|
|
||||||
```
|
|
||||||
|
|
||||||
The service keeps documents in memory only. All users of one file must reach the same instance, so run a single instance.
|
|
||||||
|
|
||||||
### With Radicale
|
### With Radicale
|
||||||
|
|
||||||
Enable CalDAV (calendars, to-do lists) and CardDAV (contacts) server.
|
Enable CalDAV (calendars, to-do lists) and CardDAV (contacts) server.
|
||||||
@@ -258,6 +215,11 @@ This setup includes:
|
|||||||
- Radicale as a CalDAV (calendars, to-do lists) and CardDAV (contacts) server
|
- Radicale as a CalDAV (calendars, to-do lists) and CardDAV (contacts) server
|
||||||
- Users access to a Personal Calendar and Addressbook
|
- Users access to a Personal Calendar and Addressbook
|
||||||
|
|
||||||
|
Clients connect to `https://<your-domain>/caldav/` (calendar) and
|
||||||
|
`https://<your-domain>/carddav/` (contacts) — note the required trailing
|
||||||
|
slash — using an App Token as password. See [radicale/README.md](radicale/README.md)
|
||||||
|
for client setup (GNOME Online Accounts, Thunderbird) and troubleshooting.
|
||||||
|
|
||||||
### With Monitoring
|
### With Monitoring
|
||||||
|
|
||||||
Enable monitoring capabilities with metrics endpoints using either method:
|
Enable monitoring capabilities with metrics endpoints using either method:
|
||||||
@@ -449,8 +411,6 @@ Key variables:
|
|||||||
| `EURO_OFFICE_DOCKER_IMAGE` | Euro Office Docker image | ghcr.io/euro-office/documentserver |
|
| `EURO_OFFICE_DOCKER_IMAGE` | Euro Office Docker image | ghcr.io/euro-office/documentserver |
|
||||||
| `EURO_OFFICE_DOCKER_TAG` | Euro Office Docker tag | latest |
|
| `EURO_OFFICE_DOCKER_TAG` | Euro Office Docker tag | latest |
|
||||||
| `TIKA_IMAGE` | Apache Tika image tag | apache/tika:slim |
|
| `TIKA_IMAGE` | Apache Tika image tag | apache/tika:slim |
|
||||||
| `IMAGOR_DOCKER_IMAGE` | imagor Docker image | shumc/imagor |
|
|
||||||
| `IMAGOR_DOCKER_TAG` | imagor Docker tag | 1.9.14 |
|
|
||||||
| `KEYCLOAK_DOMAIN` | Keycloak domain | keycloak.opencloud.test |
|
| `KEYCLOAK_DOMAIN` | Keycloak domain | keycloak.opencloud.test |
|
||||||
| `KEYCLOAK_ADMIN` | Keycloak admin username | kcadmin |
|
| `KEYCLOAK_ADMIN` | Keycloak admin username | kcadmin |
|
||||||
| `KEYCLOAK_ADMIN_PASSWORD` | Keycloak admin password | admin |
|
| `KEYCLOAK_ADMIN_PASSWORD` | Keycloak admin password | admin |
|
||||||
@@ -506,13 +466,11 @@ This repository uses a modular approach with multiple compose files:
|
|||||||
- `weboffice/` - Web office integrations (Collabora Online)
|
- `weboffice/` - Web office integrations (Collabora Online)
|
||||||
- `storage/` - Storage backend configurations (decomposeds3)
|
- `storage/` - Storage backend configurations (decomposeds3)
|
||||||
- `search/` - Search and content analysis services (Apache Tika)
|
- `search/` - Search and content analysis services (Apache Tika)
|
||||||
- `thumbnails/` - Preview generator (imagor)
|
|
||||||
- `monitoring/` - Monitoring and metrics configurations
|
- `monitoring/` - Monitoring and metrics configurations
|
||||||
- `idm/` - Identity management configurations (Keycloak & LDAP)
|
- `idm/` - Identity management configurations (Keycloak & LDAP)
|
||||||
- `traefik/` - Traefik reverse proxy configurations
|
- `traefik/` - Traefik reverse proxy configurations
|
||||||
- `external-proxy/` - Configuration for external reverse proxies
|
- `external-proxy/` - Configuration for external reverse proxies
|
||||||
- `radicale/` - Radicale configuration
|
- `radicale/` - Radicale configuration
|
||||||
- `yjs/` - Yjs server configuration (collaborative editing)
|
|
||||||
- `config/` - Configuration files for OpenCloud, Keycloak, and LDAP
|
- `config/` - Configuration files for OpenCloud, Keycloak, and LDAP
|
||||||
|
|
||||||
## Advanced Usage
|
## Advanced Usage
|
||||||
|
|||||||
@@ -27,14 +27,13 @@ app_registry:
|
|||||||
description: OpenDocument presentation document
|
description: OpenDocument presentation document
|
||||||
icon: ''
|
icon: ''
|
||||||
default_app: Collabora
|
default_app: Collabora
|
||||||
allow_creation: true
|
|
||||||
- mime_type: application/vnd.oasis.opendocument.graphics
|
- mime_type: application/vnd.oasis.opendocument.graphics
|
||||||
extension: odg
|
extension: odg
|
||||||
name: OpenGraphics
|
name: OpenGraphics
|
||||||
description: OpenDocument graphics document
|
description: OpenDocument graphics document
|
||||||
icon: ''
|
icon: ''
|
||||||
default_app: Collabora
|
default_app: Collabora
|
||||||
allow_creation: false
|
allow_creation: true
|
||||||
- mime_type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
- mime_type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||||
extension: docx
|
extension: docx
|
||||||
name: Microsoft Word
|
name: Microsoft Word
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ directives:
|
|||||||
- '''self'''
|
- '''self'''
|
||||||
media-src:
|
media-src:
|
||||||
- '''self'''
|
- '''self'''
|
||||||
- 'blob:'
|
|
||||||
object-src:
|
object-src:
|
||||||
- '''self'''
|
- '''self'''
|
||||||
- 'blob:'
|
- 'blob:'
|
||||||
|
|||||||
@@ -1,23 +1,28 @@
|
|||||||
# This adds additional routes to the proxy. Forwarding
|
# This adds four additional routes to the proxy, forwarding requests
|
||||||
# request on '/carddav/', '/caldav/' and the respective '/.well-knwown'
|
# on '/caldav/', '/carddav/' and the respective '/.well-known'
|
||||||
# endpoints to the radicale container and setting the required headers.
|
# endpoints to the radicale container and setting the required headers.
|
||||||
# '/yjs' is forwarded to the yjs container.
|
#
|
||||||
|
# Client URLs (trailing slash required, see radicale/README.md):
|
||||||
|
# CalDAV: https://<your-domain>/caldav/
|
||||||
|
# CardDAV: https://<your-domain>/carddav/
|
||||||
additional_policies:
|
additional_policies:
|
||||||
- name: default
|
- name: default
|
||||||
routes:
|
routes:
|
||||||
- endpoint: /yjs
|
|
||||||
backend: http://yjs:1234
|
|
||||||
unprotected: true
|
|
||||||
- endpoint: /caldav/
|
- endpoint: /caldav/
|
||||||
backend: http://radicale:5232
|
backend: http://radicale:5232
|
||||||
remote_user_header: X-Remote-User
|
remote_user_header: X-Remote-User
|
||||||
skip_x_access_token: true
|
skip_x_access_token: true
|
||||||
additional_headers:
|
additional_headers:
|
||||||
- X-Script-Name: /caldav
|
- X-Script-Name: /caldav
|
||||||
|
# The '.well-known' endpoints are 'unprotected' so that DAV clients
|
||||||
|
# can discover the CalDAV/CardDAV URLs (RFC 6764) before they
|
||||||
|
# authenticate. Radicale only ever answers these paths with a 301
|
||||||
|
# redirect to '/caldav/' or '/carddav/' and serves no data here
|
||||||
|
# (deeper paths return 404), so no authentication is required.
|
||||||
- endpoint: /.well-known/caldav
|
- endpoint: /.well-known/caldav
|
||||||
backend: http://radicale:5232
|
backend: http://radicale:5232
|
||||||
remote_user_header: X-Remote-User
|
|
||||||
skip_x_access_token: true
|
skip_x_access_token: true
|
||||||
|
unprotected: true
|
||||||
additional_headers:
|
additional_headers:
|
||||||
- X-Script-Name: /caldav
|
- X-Script-Name: /caldav
|
||||||
- endpoint: /carddav/
|
- endpoint: /carddav/
|
||||||
@@ -28,8 +33,8 @@ additional_policies:
|
|||||||
- X-Script-Name: /carddav
|
- X-Script-Name: /carddav
|
||||||
- endpoint: /.well-known/carddav
|
- endpoint: /.well-known/carddav
|
||||||
backend: http://radicale:5232
|
backend: http://radicale:5232
|
||||||
remote_user_header: X-Remote-User
|
|
||||||
skip_x_access_token: true
|
skip_x_access_token: true
|
||||||
|
unprotected: true
|
||||||
additional_headers:
|
additional_headers:
|
||||||
- X-Script-Name: /carddav
|
- X-Script-Name: /carddav
|
||||||
# To enable the radicale web UI add this rule.
|
# To enable the radicale web UI add this rule.
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
opencloud:
|
opencloud:
|
||||||
# renovate: depName=opencloudeu/opencloud
|
# renovate: depName=opencloudeu/opencloud-rolling
|
||||||
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud}:${OC_DOCKER_TAG:-9.1.1}
|
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-7.5.0}
|
||||||
# changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog
|
# changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog
|
||||||
# release notes: https://docs.opencloud.eu/opencloud_release_notes.html
|
# release notes: https://docs.opencloud.eu/opencloud_release_notes.html
|
||||||
user: ${OC_CONTAINER_UID_GID:-1000:1000}
|
user: ${OC_CONTAINER_UID_GID:-1000:1000}
|
||||||
@@ -54,18 +54,8 @@ services:
|
|||||||
OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS:-1}"
|
OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_UPPERCASE_CHARACTERS:-1}"
|
||||||
OC_PASSWORD_POLICY_MIN_DIGITS: "${OC_PASSWORD_POLICY_MIN_DIGITS:-1}"
|
OC_PASSWORD_POLICY_MIN_DIGITS: "${OC_PASSWORD_POLICY_MIN_DIGITS:-1}"
|
||||||
OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS:-1}"
|
OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS: "${OC_PASSWORD_POLICY_MIN_SPECIAL_CHARACTERS:-1}"
|
||||||
# guest links
|
|
||||||
OC_ENABLE_GUEST_LINKS: "${OC_ENABLE_GUEST_LINKS:-false}"
|
|
||||||
# default language for services/WebUI; defaults to English, language code (ISO 639-1, e.g. de, en, fr)
|
# default language for services/WebUI; defaults to English, language code (ISO 639-1, e.g. de, en, fr)
|
||||||
OC_DEFAULT_LANGUAGE: ${DEFAULT_LANGUAGE}
|
OC_DEFAULT_LANGUAGE: ${DEFAULT_LANGUAGE}
|
||||||
# Opencloud sets a maximum size for GRPC requests. Having a large amount of file per directory
|
|
||||||
# can exceed these limits resulting in internal server errors and log messages like:
|
|
||||||
#
|
|
||||||
# grpc: received message larger than max (X vs. 10240000)
|
|
||||||
#
|
|
||||||
# with X being a number larger than 10240000. You can set a custom limit, for example 20480000.
|
|
||||||
# Keep in mind that doubling the GRPC_MAX_RECEIVED_MESSAGE_SIZE limit may also double your peak RAM usage.
|
|
||||||
OC_GRPC_MAX_RECEIVED_MESSAGE_SIZE:
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
|
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
|
||||||
- ./config/opencloud/apps.yaml:/etc/opencloud/apps.yaml
|
- ./config/opencloud/apps.yaml:/etc/opencloud/apps.yaml
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17.12-alpine
|
image: postgres:17.11-alpine
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
volumes:
|
volumes:
|
||||||
@@ -78,7 +78,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
image: quay.io/keycloak/keycloak:26.8.2
|
image: quay.io/keycloak/keycloak:26.7.3
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
||||||
|
|||||||
7
monitoring/monitoring-collaboration.yml
Normal file
7
monitoring/monitoring-collaboration.yml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
services:
|
||||||
|
collaboration:
|
||||||
|
environment:
|
||||||
|
# metrics
|
||||||
|
COLLABORATION_DEBUG_ADDR: 0.0.0.0:9304
|
||||||
77
radicale/README.md
Normal file
77
radicale/README.md
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
# Radicale — CalDAV / CardDAV
|
||||||
|
|
||||||
|
This module adds [Radicale](https://radicale.org/) as a CalDAV (calendars,
|
||||||
|
to-do lists) and CardDAV (contacts) server behind the OpenCloud proxy. Every
|
||||||
|
user gets a personal calendar and address book on first access.
|
||||||
|
|
||||||
|
## Enabling
|
||||||
|
|
||||||
|
Add `radicale/radicale.yml` to your `COMPOSE_FILE`:
|
||||||
|
|
||||||
|
```
|
||||||
|
COMPOSE_FILE=docker-compose.yml:radicale/radicale.yml:traefik/opencloud.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
The routes are defined in [`config/opencloud/proxy.yaml`](../config/opencloud/proxy.yaml),
|
||||||
|
which `radicale.yml` mounts into the opencloud container.
|
||||||
|
|
||||||
|
## Connecting clients
|
||||||
|
|
||||||
|
### URLs
|
||||||
|
|
||||||
|
| Service | URL |
|
||||||
|
|---|---|
|
||||||
|
| CalDAV (calendar) | `https://<your-domain>/caldav/` |
|
||||||
|
| CardDAV (contacts) | `https://<your-domain>/carddav/` |
|
||||||
|
|
||||||
|
**The trailing slash is required.** `https://<your-domain>/caldav` (without
|
||||||
|
the slash) is not routed to Radicale and returns the OpenCloud web UI instead.
|
||||||
|
|
||||||
|
Clients that implement DAV service discovery (RFC 6764) can also be pointed
|
||||||
|
at the bare domain `https://<your-domain>/` — the `/.well-known/caldav` and
|
||||||
|
`/.well-known/carddav` endpoints redirect them to the URLs above. Clients
|
||||||
|
that don't (or that get confused by the web UI at the base URL) need the full
|
||||||
|
URL including the suffix.
|
||||||
|
|
||||||
|
### Authentication: use an App Token
|
||||||
|
|
||||||
|
DAV clients authenticate with **username + App Token** — not your account
|
||||||
|
password. With the default configuration (`PROXY_ENABLE_BASIC_AUTH=false`)
|
||||||
|
the account password is rejected with `401 Unauthorized`; App Tokens work out
|
||||||
|
of the box.
|
||||||
|
|
||||||
|
Create a token either
|
||||||
|
|
||||||
|
- in the web UI under **Settings → App Tokens**, or
|
||||||
|
- on the CLI:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose exec opencloud opencloud auth-app create --user-name=<user> --expiration=72h
|
||||||
|
```
|
||||||
|
|
||||||
|
### GNOME Online Accounts
|
||||||
|
|
||||||
|
GNOME expects a directly answering DAV endpoint per account, so calendars and
|
||||||
|
contacts are added as two separate accounts:
|
||||||
|
|
||||||
|
1. **Settings → Online Accounts → Add Account → Calendar (CalDAV)**
|
||||||
|
— URL `https://<your-domain>/caldav/`, your username, an App Token as
|
||||||
|
password.
|
||||||
|
2. **Settings → Online Accounts → Add Account → Contacts (CardDAV)**
|
||||||
|
— URL `https://<your-domain>/carddav/`, same credentials.
|
||||||
|
|
||||||
|
### Thunderbird
|
||||||
|
|
||||||
|
- Calendar: *New Calendar → On the Network*, URL `https://<your-domain>/caldav/`
|
||||||
|
- Address book: *New Address Book → Add CardDAV Address Book*, URL
|
||||||
|
`https://<your-domain>/carddav/`
|
||||||
|
|
||||||
|
Use an App Token as the password in both dialogs.
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
| Symptom | Cause |
|
||||||
|
|---|---|
|
||||||
|
| `401 Unauthorized` | Account password used instead of an App Token (or the token expired). |
|
||||||
|
| `405 Method Not Allowed` / HTML response | Trailing slash missing — the request landed on the web UI, not Radicale. |
|
||||||
|
| Client says "not a (Cal)DAV server" at the base URL | The client doesn't do RFC 6764 discovery. Use the full `/caldav/` / `/carddav/` URL. |
|
||||||
@@ -33,9 +33,7 @@
|
|||||||
"customType": "regex",
|
"customType": "regex",
|
||||||
"managerFilePatterns": [
|
"managerFilePatterns": [
|
||||||
"/^docker-compose\\.yml$/",
|
"/^docker-compose\\.yml$/",
|
||||||
"/^weboffice\\/collabora\\.yml$/",
|
"/^weboffice\\/collabora\\.yml$/"
|
||||||
"/^yjs\\/yjs\\.yml$/",
|
|
||||||
"/^thumbnails\\/imagor\\.yml$/"
|
|
||||||
],
|
],
|
||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"# renovate: depName=(?<depName>[^\\s]+)\\n\\s+image: \\$\\{[^}]+\\}:\\$\\{[^}]+-(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)\\}"
|
"# renovate: depName=(?<depName>[^\\s]+)\\n\\s+image: \\$\\{[^}]+\\}:\\$\\{[^}]+-(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)\\}"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:17.12-alpine
|
image: postgres:17.11-alpine
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
volumes:
|
volumes:
|
||||||
@@ -15,7 +15,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
image: quay.io/keycloak/keycloak:26.8.2
|
image: quay.io/keycloak/keycloak:26.7.3
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
command: [ "start", "--spi-connections-http-client-default-disable-trust-manager=${INSECURE:-false}", "--import-realm" ]
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
---
|
|
||||||
services:
|
|
||||||
imagor:
|
|
||||||
# renovate: depName=shumc/imagor
|
|
||||||
image: ${IMAGOR_DOCKER_IMAGE:-shumc/imagor}:${IMAGOR_DOCKER_TAG:-1.10.5}
|
|
||||||
environment:
|
|
||||||
IMAGOR_UNSAFE: "true"
|
|
||||||
UPLOAD_LOADER_ENABLE: "true"
|
|
||||||
UPLOAD_LOADER_MAX_ALLOWED_SIZE: ${IMAGOR_MAX_SOURCE_SIZE:-50000000}
|
|
||||||
HTTP_LOADER_DISABLE: "true"
|
|
||||||
VIPS_MAX_WIDTH: "7680"
|
|
||||||
VIPS_MAX_HEIGHT: "7680"
|
|
||||||
VIPS_MAX_ANIMATION_FRAMES: "100"
|
|
||||||
networks:
|
|
||||||
imagor-net:
|
|
||||||
read_only: true
|
|
||||||
tmpfs:
|
|
||||||
- /tmp:size=256m
|
|
||||||
cap_drop:
|
|
||||||
- ALL
|
|
||||||
security_opt:
|
|
||||||
- no-new-privileges:true
|
|
||||||
restart: always
|
|
||||||
logging:
|
|
||||||
driver: ${LOG_DRIVER:-local}
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-sf", "http://127.0.0.1:8000/healthcheck"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 10
|
|
||||||
start_period: 5s
|
|
||||||
|
|
||||||
opencloud:
|
|
||||||
environment:
|
|
||||||
WEBDAV_THUMBNAILS_GENERATOR_URL: http://imagor:8000
|
|
||||||
OC_THUMBNAILS_ADDITIONAL_SOURCE_TYPES: ${THUMBNAILS_ADDITIONAL_SOURCE_TYPES:-image/heic,image/heif,image/avif,image/heic-sequence,image/heif-sequence}
|
|
||||||
networks:
|
|
||||||
imagor-net:
|
|
||||||
depends_on:
|
|
||||||
imagor:
|
|
||||||
condition: service_healthy
|
|
||||||
|
|
||||||
networks:
|
|
||||||
imagor-net:
|
|
||||||
internal: true
|
|
||||||
@@ -3,7 +3,6 @@ services:
|
|||||||
opencloud:
|
opencloud:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_opencloud-net"
|
|
||||||
# define middleware here, to make sure its loaded with the first defined container (opencloud)
|
# define middleware here, to make sure its loaded with the first defined container (opencloud)
|
||||||
# if defined in the traefik container with a disabled dashboard it won't be loaded fast enough
|
# if defined in the traefik container with a disabled dashboard it won't be loaded fast enough
|
||||||
- "traefik.http.middlewares.hsts-header.headers.stsSeconds=31536000"
|
- "traefik.http.middlewares.hsts-header.headers.stsSeconds=31536000"
|
||||||
@@ -17,7 +16,7 @@ services:
|
|||||||
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
|
- "traefik.http.services.opencloud.loadbalancer.server.port=9200"
|
||||||
- "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}"
|
- "traefik.http.routers.opencloud.${TRAEFIK_SERVICES_TLS_CONFIG}"
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik:v3.7.19
|
image: traefik:v3.7.12
|
||||||
# release notes: https://github.com/traefik/traefik/releases
|
# release notes: https://github.com/traefik/traefik/releases
|
||||||
user: ${TRAEFIK_CONTAINER_UID_GID:-0:0}
|
user: ${TRAEFIK_CONTAINER_UID_GID:-0:0}
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ services:
|
|||||||
# To rotate the key, remove the volume and start again:
|
# To rotate the key, remove the volume and start again:
|
||||||
# docker compose down collabora && docker volume rm <project>_collabora-proof-key
|
# docker compose down collabora && docker volume rm <project>_collabora-proof-key
|
||||||
collabora-proof-key:
|
collabora-proof-key:
|
||||||
image: alpine/openssl:3.5.9
|
image: alpine/openssl:3.5.8
|
||||||
entrypoint: ["/bin/sh"]
|
entrypoint: ["/bin/sh"]
|
||||||
command:
|
command:
|
||||||
- -ec
|
- -ec
|
||||||
@@ -50,7 +50,7 @@ services:
|
|||||||
restart: "no"
|
restart: "no"
|
||||||
|
|
||||||
collabora:
|
collabora:
|
||||||
image: collabora/code:26.04.6.2.1
|
image: collabora/code:26.04.3.1.1
|
||||||
# release notes: https://www.collaboraonline.com/release-notes/
|
# release notes: https://www.collaboraonline.com/release-notes/
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
|
|||||||
23
yjs/yjs.yml
23
yjs/yjs.yml
@@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
services:
|
|
||||||
opencloud:
|
|
||||||
environment:
|
|
||||||
WEB_OPTION_YJS_SERVER_URL: wss://${OC_DOMAIN:-cloud.opencloud.test}${TRAEFIK_PORT_HTTPS:+:}${TRAEFIK_PORT_HTTPS:-}/yjs
|
|
||||||
volumes:
|
|
||||||
# the /yjs route is configured in the proxy
|
|
||||||
- ./config/opencloud/proxy.yaml:/etc/opencloud/proxy.yaml
|
|
||||||
yjs:
|
|
||||||
# renovate: depName=opencloudeu/yjs
|
|
||||||
image: ${YJS_DOCKER_IMAGE:-opencloudeu/yjs}:${YJS_DOCKER_TAG:-1.1.1}
|
|
||||||
user: ${OC_CONTAINER_UID_GID:-1000:1000}
|
|
||||||
networks:
|
|
||||||
opencloud-net:
|
|
||||||
environment:
|
|
||||||
PORT: '1234'
|
|
||||||
# internal address, no TLS between the containers
|
|
||||||
OPENCLOUD_URL: ${YJS_OPENCLOUD_URL:-http://opencloud:9200}
|
|
||||||
SHUTDOWN_GRACE_PERIOD_MS: '${YJS_SHUTDOWN_GRACE_PERIOD_MS:-15000}'
|
|
||||||
logging:
|
|
||||||
driver: ${LOG_DRIVER:-local}
|
|
||||||
restart: always
|
|
||||||
stop_grace_period: 20s
|
|
||||||
Reference in New Issue
Block a user