From 69b40132c062ebdbc6b022ddfe4d0e4d50d813d9 Mon Sep 17 00:00:00 2001 From: Alexander Ackermann Date: Thu, 6 Nov 2025 10:51:07 +0100 Subject: [PATCH 1/4] feat: mount local system font dir to collabora --- weboffice/collabora.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index fe1bb33..f48644a 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -41,6 +41,9 @@ services: volumes: # configure the .env file to use own paths instead of docker internal volumes - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud + # in order to add new fonts, add then to /usr/share/fonts/truetype on your local system + - /usr/share/fonts/truetype:/usr/share/fonts/truetype/more:ro + - /usr/share/fonts/truetype:/opt/cool/systemplate/usr/share/fonts/truetype/more:ro logging: driver: ${LOG_DRIVER:-local} restart: always @@ -68,8 +71,8 @@ services: logging: driver: ${LOG_DRIVER:-local} restart: always - entrypoint: ['/bin/bash', '-c'] - command: ['coolconfig generate-proof-key && /start-collabora-online.sh'] + entrypoint: [ '/bin/bash', '-c' ] + command: [ 'coolconfig generate-proof-key && /start-collabora-online.sh' ] healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:9980/hosting/discovery" ] interval: 15s From 0622cf6e600220f1c87db6a8b1b0985ace908a97 Mon Sep 17 00:00:00 2001 From: Alexander Ackermann Date: Thu, 6 Nov 2025 10:53:37 +0100 Subject: [PATCH 2/4] fix typo --- weboffice/collabora.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index f48644a..6b0b041 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -41,7 +41,7 @@ services: volumes: # configure the .env file to use own paths instead of docker internal volumes - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud - # in order to add new fonts, add then to /usr/share/fonts/truetype on your local system + # in order to add new fonts, add them to /usr/share/fonts/truetype on your local system - /usr/share/fonts/truetype:/usr/share/fonts/truetype/more:ro - /usr/share/fonts/truetype:/opt/cool/systemplate/usr/share/fonts/truetype/more:ro logging: From 85deada0d2da6226d2d237d7d1b3f9a59e2459c3 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 6 Nov 2025 13:48:52 +0100 Subject: [PATCH 3/4] Update weboffice/collabora.yml --- weboffice/collabora.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index 6b0b041..7b97116 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -41,7 +41,8 @@ services: volumes: # configure the .env file to use own paths instead of docker internal volumes - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud - # in order to add new fonts, add them to /usr/share/fonts/truetype on your local system + # Mount local TrueType fonts so the container can use system fonts + # (e.g. Microsoft fonts like Arial, Calibri, Cambria). - /usr/share/fonts/truetype:/usr/share/fonts/truetype/more:ro - /usr/share/fonts/truetype:/opt/cool/systemplate/usr/share/fonts/truetype/more:ro logging: From b501311d0fa8c5ef9f4eb6e4a6774b643830f83b Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 6 Nov 2025 13:55:10 +0100 Subject: [PATCH 4/4] Apply suggestion from @kulmann Co-authored-by: Benedikt Kulmann --- weboffice/collabora.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboffice/collabora.yml b/weboffice/collabora.yml index 7b97116..d18a8e1 100644 --- a/weboffice/collabora.yml +++ b/weboffice/collabora.yml @@ -42,7 +42,7 @@ services: # configure the .env file to use own paths instead of docker internal volumes - ${OC_CONFIG_DIR:-opencloud-config}:/etc/opencloud # Mount local TrueType fonts so the container can use system fonts - # (e.g. Microsoft fonts like Arial, Calibri, Cambria). + # (e.g. Microsoft fonts like Arial, Calibri, Cambria by installing the `ttf-mscorefonts-installer` package). - /usr/share/fonts/truetype:/usr/share/fonts/truetype/more:ro - /usr/share/fonts/truetype:/opt/cool/systemplate/usr/share/fonts/truetype/more:ro logging: