Skip to content

Commit 95c0373

Browse files
Merge branch 'main' into oc_port_configurable
2 parents 900a05c + 79782cd commit 95c0373

13 files changed

Lines changed: 79 additions & 15 deletions

File tree

.env.example

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ TRAEFIK_SERVICES_TLS_CONFIG="tls.certresolver=letsencrypt"
5656
# certificates:
5757
# - certFile: /certs/opencloud.test.crt
5858
# keyFile: /certs/opencloud.test.key
59-
# stores:
60-
# - default
59+
# stores:
60+
# default:
61+
# defaultCertificate:
62+
# certFile: /certs/opencloud.test.crt
63+
# keyFile: /certs/opencloud.test.key
6164
#
6265
# The certificates need to be copied into ./certs/, the absolute path inside the container is /certs/.
6366
# You can also use TRAEFIK_CERTS_DIR=/path/on/host to set the path to the certificates directory.
@@ -66,12 +69,15 @@ TRAEFIK_ACCESS_LOG=
6669
# Configure the log level for Traefik.
6770
# Possible values are "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" and "PANIC". Default is "ERROR".
6871
TRAEFIK_LOG_LEVEL=
72+
# The default for traefik is to run in privileged mode.
73+
# If you want to run traefik non-privileged, use the following variable and the format [UID]:[GID] to set user and group of your choice.
74+
# Ensure that the user has access to docker.sock and traefik volumes defined in traefik/opencloud.yml
75+
#TRAEFIK_CONTAINER_UID_GID="1000:1000"
6976
# Configure ports for HTTP and HTTPS when necessary, defaults are 80 and 443
7077
# Don't use ports in the range of 8000-9999 and 5232 as those ports are used internally and therefore might create conflicts.
7178
#TRAEFIK_PORT_HTTP=4080
7279
#TRAEFIK_PORT_HTTPS=4443
7380

74-
7581
## OpenCloud Settings ##
7682
# The opencloud container image.
7783
# For production releases: "opencloudeu/opencloud"
@@ -81,6 +87,11 @@ OC_DOCKER_IMAGE=opencloudeu/opencloud-rolling
8187
# The openCloud container version.
8288
# Defaults to "latest" and points to the latest stable tag.
8389
OC_DOCKER_TAG=
90+
# The default id used in opencloud containers is 1000 for user and group.
91+
# If you want to change the default, use the following variable and the format [UID]:[GID].
92+
# The change affects all containers with access to data volumes.
93+
# Ensure that the user has access to all volumes defined in docker-compose.yml
94+
#OC_CONTAINER_UID_GID="1000:1000"
8495
# Domain of openCloud, where you can find the frontend.
8596
# Defaults to "cloud.opencloud.test"
8697
OC_DOMAIN=
@@ -97,6 +108,9 @@ DEMO_USERS=
97108
# After the first initialization, the admin password can only be changed via the OpenCloud User Settings UI or by using the OpenCloud CLI.
98109
# Documentation: https://docs.opencloud.eu/docs/admin/resources/common-issues#-change-admin-password-set-in-env
99110
INITIAL_ADMIN_PASSWORD=
111+
# Whether clients should check for updates.
112+
# Defaults to "true".
113+
CHECK_FOR_UPDATES=
100114
# Define the openCloud loglevel used.
101115
#
102116
LOG_LEVEL=
@@ -179,7 +193,11 @@ START_ADDITIONAL_SERVICES=""
179193
# search/tika.yml or by using the following command:
180194
# docker compose -f docker-compose.yml -f search/tika.yml up -d
181195
# Set the desired docker image tag or digest.
182-
# Defaults to "apache/tika:latest-full"
196+
# Defaults to "apache/tika:latest"
197+
# The slim variant is recommended for most use cases as it provides core text extraction
198+
# functionality with a smaller image size and faster startup time.
199+
# Only use the full variant (apache/tika:latest-full) if you need specialized features
200+
# like advanced OCR or specific image processing capabilities.
183201
TIKA_IMAGE=
184202

185203
### IMPORTANT Note for Online Office Apps ###
@@ -209,7 +227,7 @@ COLLABORA_SSL_ENABLE=false
209227
# Please comment out the following line:
210228
COLLABORA_SSL_VERIFICATION=false
211229
# Enable home mode in Collabore Online.
212-
# Home users can enable this setting, which in turn disables welcome screen and user feedback popups,
230+
# Home users can enable this setting, which in turn disables welcome screen and user feedback popups,
213231
# but also limits concurrent open connections to 20 and concurrent open documents to 10.
214232
# Default is false if not specified.
215233
COLLABORA_HOME_MODE=

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,14 @@ This setup includes:
148148
- Full text search functionality in the OpenCloud interface
149149
- Support for documents, PDFs, images, and other file types
150150

151+
**Tika Image Variant:**
152+
By default, OpenCloud Compose uses `apache/tika:latest` which provides:
153+
- Smaller image size (~300MB vs ~1.2GB for the full variant)
154+
- Faster container startup and deployment
155+
- Core text extraction functionality for common document formats (PDF, Office docs, text files, etc.)
156+
157+
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.
158+
151159
### With Radicale
152160

153161
Enable CalDAV (calendars, to-do lists) and CardDAV (contacts) server.
@@ -338,7 +346,7 @@ Key variables:
338346
| `INSECURE` | Skip certificate validation | true |
339347
| `COLLABORA_DOMAIN` | Collabora domain | collabora.opencloud.test |
340348
| `WOPISERVER_DOMAIN` | WOPI server domain | wopiserver.opencloud.test |
341-
| `TIKA_IMAGE` | Apache Tika image tag | apache/tika:latest-full |
349+
| `TIKA_IMAGE` | Apache Tika image tag | apache/tika:slim |
342350
| `KEYCLOAK_DOMAIN` | Keycloak domain | keycloak.opencloud.test |
343351
| `KEYCLOAK_ADMIN` | Keycloak admin username | kcadmin |
344352
| `KEYCLOAK_ADMIN_PASSWORD` | Keycloak admin password | admin |

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
image: ${OC_DOCKER_IMAGE:-opencloudeu/opencloud-rolling}:${OC_DOCKER_TAG:-latest}
55
# changelog: https://github.com/opencloud-eu/opencloud/tree/main/changelog
66
# release notes: https://docs.opencloud.eu/opencloud_release_notes.html
7+
user: ${OC_CONTAINER_UID_GID:-1000:1000}
78
networks:
89
opencloud-net:
910
entrypoint:
@@ -39,6 +40,7 @@ services:
3940
NOTIFICATIONS_SMTP_AUTHENTICATION: "${SMTP_AUTHENTICATION}"
4041
NOTIFICATIONS_SMTP_ENCRYPTION: "${SMTP_TRANSPORT_ENCRYPTION:-none}"
4142
FRONTEND_ARCHIVER_MAX_SIZE: "10000000000"
43+
FRONTEND_CHECK_FOR_UPDATES: "${CHECK_FOR_UPDATES:-true}"
4244
PROXY_CSP_CONFIG_FILE_LOCATION: /etc/opencloud/csp.yaml
4345
# enable to allow using the banned passwords list
4446
OC_PASSWORD_POLICY_BANNED_PASSWORDS_LIST: banned-password-list.txt
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
# only expose the ports when you know what you are doing!
3+
services:
4+
collaboration:
5+
ports:
6+
# expose the wopi server on all interfaces
7+
- "0.0.0.0:9300:9300"
8+
collabora:
9+
ports:
10+
# expose the collabora server on all interfaces
11+
- "0.0.0.0:9980:9980"

external-proxy/collabora.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
services:
33
collaboration:
44
ports:
5-
# expose the wopi server
6-
- "9300:9300"
5+
# expose the wopi server on localhost
6+
- "127.0.0.1:9300:9300"
77
collabora:
88
ports:
9-
# expose the collabora server
10-
- "9980:9980"
9+
# expose the collabora server on localhost
10+
- "127.0.0.1:9980:9980"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
# only expose the ports when you know what you re doing!
3+
services:
4+
keycloak:
5+
ports:
6+
# expose the keycloak server on all interfaces
7+
- "0.0.0.0:9000:9000"
8+
- "0.0.0.0:8080:8080"

external-proxy/keycloak.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
services:
33
keycloak:
44
ports:
5-
- "9000:9000"
6-
- "8080:8080"
5+
# expose the keycloak server on localhost
6+
- "127.0.0.1:9000:9000"
7+
- "127.0.0.1:8080:8080"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
# only expose the ports when you know what you are doing!
3+
services:
4+
opencloud:
5+
environment:
6+
# bind to all interfaces
7+
PROXY_HTTP_ADDR: "0.0.0.0:9200"
8+
ports:
9+
# expose the opencloud server on all interfaces
10+
- "0.0.0.0:9200:9200"

external-proxy/opencloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ services:
55
# bind to all interfaces
66
PROXY_HTTP_ADDR: "0.0.0.0:9200"
77
ports:
8-
# expose the opencloud server
9-
- "9200:9200"
8+
# expose the opencloud server on localhost
9+
- "127.0.0.1:9200:9200"

radicale/radicale.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
- ./config/opencloud/proxy.yaml:/etc/opencloud/proxy.yaml
77
radicale:
88
image: ${RADICALE_DOCKER_IMAGE:-opencloudeu/radicale}:${RADICALE_DOCKER_TAG:-latest}
9+
user: ${OC_CONTAINER_UID_GID:-1000:1000}
910
networks:
1011
opencloud-net:
1112
logging:

0 commit comments

Comments
 (0)