mirror of
https://github.com/opencloud-eu/opencloud-compose.git
synced 2026-06-08 20:20:04 +08:00
Compare commits
11 Commits
add-defaul
...
fix-slow-j
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41b721b42b | ||
|
|
5ededbd4c9 | ||
|
|
98294c2dee | ||
|
|
1a4f302855 | ||
|
|
de88ca037b | ||
|
|
1b4cfb5759 | ||
|
|
1a231fa807 | ||
|
|
a79de3c5ee | ||
|
|
4e8f66ac5f | ||
|
|
8ce6895188 | ||
|
|
a0d5196dfa |
@@ -59,10 +59,7 @@ TRAEFIK_SERVICES_TLS_CONFIG="tls.certresolver=letsencrypt"
|
|||||||
# - certFile: /certs/opencloud.test.crt
|
# - certFile: /certs/opencloud.test.crt
|
||||||
# keyFile: /certs/opencloud.test.key
|
# keyFile: /certs/opencloud.test.key
|
||||||
# stores:
|
# stores:
|
||||||
# default:
|
# - default
|
||||||
# defaultCertificate:
|
|
||||||
# certFile: /certs/opencloud.test.crt
|
|
||||||
# keyFile: /certs/opencloud.test.key
|
|
||||||
#
|
#
|
||||||
# The certificates need to be copied into ./certs/, the absolute path inside the container is /certs/.
|
# The certificates need to be copied into ./certs/, the absolute path inside the container is /certs/.
|
||||||
# You can also use TRAEFIK_CERTS_DIR=/path/on/host to set the path to the certificates directory.
|
# You can also use TRAEFIK_CERTS_DIR=/path/on/host to set the path to the certificates directory.
|
||||||
@@ -325,6 +322,9 @@ KEYCLOAK_DOMAIN=
|
|||||||
KEYCLOAK_ADMIN=
|
KEYCLOAK_ADMIN=
|
||||||
# Admin user login password. Defaults to "admin".
|
# Admin user login password. Defaults to "admin".
|
||||||
KEYCLOAK_ADMIN_PASSWORD=
|
KEYCLOAK_ADMIN_PASSWORD=
|
||||||
|
# Configure the log level for Keycloak.
|
||||||
|
# Possible values are "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" and "OFF". Default is "INFO".
|
||||||
|
KC_LOG_LEVEL=
|
||||||
# Keycloak Database username. Defaults to "keycloak".
|
# Keycloak Database username. Defaults to "keycloak".
|
||||||
KC_DB_USERNAME=
|
KC_DB_USERNAME=
|
||||||
# Keycloak Database password. Defaults to "keycloak".
|
# Keycloak Database password. Defaults to "keycloak".
|
||||||
|
|||||||
@@ -285,10 +285,6 @@ OpenCloud Compose supports adding SSL certificates for public domains and develo
|
|||||||
keyFile: /certs/opencloud.test.key
|
keyFile: /certs/opencloud.test.key
|
||||||
stores:
|
stores:
|
||||||
- default
|
- default
|
||||||
- certFile: /certs/wildcard.example.com.crt
|
|
||||||
keyFile: /certs/wildcard.example.com.key
|
|
||||||
stores:
|
|
||||||
- default
|
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Configure environment variables**:
|
3. **Configure environment variables**:
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
printenv
|
# print env variables for trace/debug log levels
|
||||||
|
log_level=$(printf '%s' "$KC_LOG_LEVEL" | tr '[:upper:]' '[:lower:]')
|
||||||
|
case "$log_level" in trace|debug) printenv ;; *) ;; esac
|
||||||
|
|
||||||
# replace openCloud domain and LDAP password in keycloak realm import
|
# replace openCloud domain and LDAP password in keycloak realm import
|
||||||
mkdir /opt/keycloak/data/import
|
mkdir /opt/keycloak/data/import
|
||||||
sed -e "s/cloud.opencloud.test/${OC_DOMAIN}/g" -e "s/ldap-admin-password/${LDAP_ADMIN_PASSWORD:-admin}/g" /opt/keycloak/data/import-dist/openCloud-realm.json > /opt/keycloak/data/import/openCloud-realm.json
|
sed -e "s/cloud.opencloud.test/${OC_DOMAIN}/g" -e "s/ldap-admin-password/${LDAP_ADMIN_PASSWORD:-admin}/g" /opt/keycloak/data/import-dist/openCloud-realm.json > /opt/keycloak/data/import/openCloud-realm.json
|
||||||
|
|||||||
@@ -23,14 +23,6 @@ add_arg "--entryPoints.https.address=:${TRAEFIK_PORT_HTTPS:-443}"
|
|||||||
add_arg "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h"
|
add_arg "--entryPoints.https.transport.respondingTimeouts.readTimeout=12h"
|
||||||
add_arg "--entryPoints.https.transport.respondingTimeouts.writeTimeout=12h"
|
add_arg "--entryPoints.https.transport.respondingTimeouts.writeTimeout=12h"
|
||||||
add_arg "--entryPoints.https.transport.respondingTimeouts.idleTimeout=3m"
|
add_arg "--entryPoints.https.transport.respondingTimeouts.idleTimeout=3m"
|
||||||
# allow encoded characters
|
|
||||||
# required for WOPI/Collabora
|
|
||||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedSlash=true"
|
|
||||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedQuestionMark=true"
|
|
||||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedPercent=true"
|
|
||||||
# required for file operations with supported encoded characters
|
|
||||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedSemicolon=true"
|
|
||||||
add_arg "--entryPoints.https.http.encodedCharacters.allowEncodedHash=true"
|
|
||||||
# docker provider (get configuration from container labels)
|
# docker provider (get configuration from container labels)
|
||||||
add_arg "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
add_arg "--providers.docker.endpoint=unix:///var/run/docker.sock"
|
||||||
add_arg "--providers.docker.exposedByDefault=false"
|
add_arg "--providers.docker.exposedByDefault=false"
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ services:
|
|||||||
KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak}
|
KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak}
|
||||||
KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak}
|
KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak}
|
||||||
KC_FEATURES: impersonation
|
KC_FEATURES: impersonation
|
||||||
|
KC_LOG_LEVEL: ${KC_LOG_LEVEL:-INFO}
|
||||||
KC_PROXY_HEADERS: xforwarded
|
KC_PROXY_HEADERS: xforwarded
|
||||||
KC_HTTP_ENABLED: true
|
KC_HTTP_ENABLED: true
|
||||||
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin}
|
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ services:
|
|||||||
KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak}
|
KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak}
|
||||||
KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak}
|
KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak}
|
||||||
KC_FEATURES: impersonation
|
KC_FEATURES: impersonation
|
||||||
|
KC_LOG_LEVEL: ${KC_LOG_LEVEL:-INFO}
|
||||||
KC_PROXY_HEADERS: xforwarded
|
KC_PROXY_HEADERS: xforwarded
|
||||||
KC_HTTP_ENABLED: true
|
KC_HTTP_ENABLED: true
|
||||||
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin}
|
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin}
|
||||||
|
|||||||
@@ -9,7 +9,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.6.4
|
image: traefik:v3.6.7
|
||||||
# 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:
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
collabora:
|
collabora:
|
||||||
image: collabora/code:25.04.7.1.1
|
image: collabora/code:25.04.9.1.1
|
||||||
# release notes: https://www.collaboraonline.com/release-notes/
|
# release notes: https://www.collaboraonline.com/release-notes/
|
||||||
networks:
|
networks:
|
||||||
opencloud-net:
|
opencloud-net:
|
||||||
@@ -66,7 +66,10 @@ services:
|
|||||||
username: ${COLLABORA_ADMIN_USER:-admin}
|
username: ${COLLABORA_ADMIN_USER:-admin}
|
||||||
password: ${COLLABORA_ADMIN_PASSWORD:-admin}
|
password: ${COLLABORA_ADMIN_PASSWORD:-admin}
|
||||||
cap_add:
|
cap_add:
|
||||||
- MKNOD
|
- SYS_ADMIN
|
||||||
|
security_opt:
|
||||||
|
- seccomp=unconfined
|
||||||
|
- apparmor:unconfined
|
||||||
volumes:
|
volumes:
|
||||||
# Mount local TrueType fonts so the container can use system fonts
|
# Mount local TrueType fonts so the container can use system fonts
|
||||||
# (e.g. Microsoft fonts like Arial, Calibri, Cambria by installing the `ttf-mscorefonts-installer` package).
|
# (e.g. Microsoft fonts like Arial, Calibri, Cambria by installing the `ttf-mscorefonts-installer` package).
|
||||||
|
|||||||
Reference in New Issue
Block a user